From 0f1f8c055c6d89f07ac3bc496deec8004e1c2ddc Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 11 Jul 2021 17:14:47 +0200 Subject: [PATCH] Fix Prototype for old BauWorld Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/region/Prototype.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java b/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java index c8cd7a4d..1c1815ae 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java @@ -67,9 +67,9 @@ public class Prototype { sizeY = yapionObject.getPlainValue("sizeY"); sizeZ = yapionObject.getPlainValue("sizeZ"); - copyPointOffsetX = yapionObject.getPlainValue("copyOffsetX"); - copyPointOffsetY = yapionObject.getPlainValue("copyOffsetY"); - copyPointOffsetZ = yapionObject.getPlainValue("copyOffsetZ"); + copyPointOffsetX = yapionObject.getPlainValueOrDefault("copyOffsetX", 0); + copyPointOffsetY = yapionObject.getPlainValueOrDefault("copyOffsetY", 0); + copyPointOffsetZ = yapionObject.getPlainValueOrDefault("copyOffsetZ", 0); schematicFile = new File(yapionObject.getValue("schematic", String.class).get());