@etothepii/satisfactory-file-parser
Advanced tools
Comparing version 0.4.21 to 0.4.22
@@ -141,13 +141,14 @@ "use strict"; | ||
const color = col4_1.col4.ParseRGBA(reader); | ||
const referencedIconLibrary = reader.readString(); | ||
const iconLibraryType = reader.readString(); | ||
return { | ||
const config = { | ||
description, | ||
color, | ||
iconID, | ||
referencedIconLibrary, | ||
iconLibraryType | ||
}; | ||
if (reader.getBufferPosition() < reader.getBufferLength()) { | ||
config.referencedIconLibrary = reader.readString(); | ||
config.iconLibraryType = reader.readString(); | ||
} | ||
return config; | ||
} | ||
} | ||
exports.BlueprintConfigReader = BlueprintConfigReader; |
@@ -85,6 +85,6 @@ "use strict"; | ||
col4_1.col4.SerializeRGBA(writer, config.color); | ||
writer.writeString(config.referencedIconLibrary); | ||
writer.writeString(config.iconLibraryType); | ||
writer.writeString(config.referencedIconLibrary ?? ''); | ||
writer.writeString(config.iconLibraryType ?? ''); | ||
} | ||
} | ||
exports.BlueprintConfigWriter = BlueprintConfigWriter; |
@@ -10,4 +10,4 @@ import { ChunkCompressionInfo } from "../../file.types"; | ||
iconID: number; | ||
referencedIconLibrary: string; | ||
iconLibraryType: string; | ||
referencedIconLibrary?: string; | ||
iconLibraryType?: string; | ||
} | ||
@@ -14,0 +14,0 @@ export type BlueprintHeader = { |
{ | ||
"name": "@etothepii/satisfactory-file-parser", | ||
"author": "etothepii", | ||
"version": "0.4.21", | ||
"version": "0.4.22", | ||
"description": "A file parser for satisfactory files. Includes save files and blueprint files.", | ||
@@ -6,0 +6,0 @@ "types": "./build/index.d.ts", |
@@ -144,2 +144,6 @@ # Satisfactory File Parser | ||
# Changelog | ||
### [0.4.22] (2024-10-07) | ||
#### compatibility fix | ||
* referenced icon libraries in blueprints are now optional when being parsed. | ||
### [0.4.21] (2024-10-07) | ||
@@ -146,0 +150,0 @@ #### internal package restructuring |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
680442
12384
210