From 61d5456e2148fd120ab1a4f2dd862af2ae69182b Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 23 Dec 2021 17:12:59 +0100 Subject: [PATCH] Update Prototype Signed-off-by: yoyosource --- .../steamwar/bausystem/region/Prototype.java | 4 ++++ yapion/prototypes4.yapion | 20 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java b/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java index 43ed5749..8f75a60f 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java @@ -105,6 +105,10 @@ public class Prototype { String schematicFileName = skinObject.getPlainValue("schematic"); String testblockSchematicFileName = skinObject.getPlainValueOrDefault("testblockSchematic", null); String buildSchematicFileName = skinObject.getPlainValueOrDefault("buildSchematic", null); + boolean disabled = skinObject.getPlainValueOrDefault("disabled", false); + if (disabled) { + return; + } skinMap.put(skinName, new Skin(skinName, skinCreator, new File(schematicFileName), testblockSchematicFileName == null ? null : new File(testblockSchematicFileName), buildSchematicFileName == null ? null : new File(buildSchematicFileName))); }); } else { diff --git a/yapion/prototypes4.yapion b/yapion/prototypes4.yapion index 30b30baa..946abafc 100644 --- a/yapion/prototypes4.yapion +++ b/yapion/prototypes4.yapion @@ -161,6 +161,12 @@ name(X-Mas AirShip) schematic(sections4/christmas/ASArena.schem) testblockSchematic(sections4/christmas/ASTestblock.schem) + }, + { + name(Prestige AirShip) + creator(TheBreadBeard) + schematic(sections4/custom/Prestige AirShip/ASArena.schem) + testblockSchematic(sections4/custom/Prestige AirShip/ASTestblock.schem) } ] sizeX(121) @@ -202,6 +208,13 @@ name(X-Mas WarShip) schematic(sections4/christmas/WSArena.schem) testblockSchematic(sections4/christmas/WSTestblock.schem) + }, + { + name(Prestige WarShip) + creator(TheBreadBeard) + schematic(sections4/custom/Prestige WarShip/WSArena.schem) + testblockSchematic(sections4/custom/Prestige WarShip/WSTestblock.schem) + disabled(true) } ] sizeX(214) @@ -247,6 +260,13 @@ name(X-Mas WarShip) schematic(sections4/christmas/WSInnerArena.schem) testblockSchematic(sections4/christmas/WSTestblock.schem) + }, + { + name(Prestige WarShip) + creator(TheBreadBeard) + schematic(sections4/custom/Prestige WarShip/WSInnerArena.schem) + testblockSchematic(sections4/custom/Prestige WarShip/WSTestblock.schem) + disabled(true) } ] sizeX(214)