Skip to content

Commit ca50723

Browse files
committed
🛠️ Fixed default variant UUID changing constantly
1 parent 3686a7e commit ca50723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/variants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ export class Variant {
177177

178178
public static fromJSON(json: IBlueprintVariantJSON, isDefault = false): Variant {
179179
const variant = new Variant(json.display_name, isDefault)
180+
variant.uuid = json.uuid
180181
if (json.is_default) {
181182
return variant
182183
}
183-
variant.uuid = json.uuid
184184
for (const [key, value] of Object.entries(json.texture_map)) {
185185
variant.textureMap.add(key, value)
186186
}

0 commit comments

Comments
 (0)