diff --git a/SpigotCore_14/src/de/steamwar/sql/Schematic_14.java b/SpigotCore_14/src/de/steamwar/sql/Schematic_14.java index dc38d46..2e02468 100644 --- a/SpigotCore_14/src/de/steamwar/sql/Schematic_14.java +++ b/SpigotCore_14/src/de/steamwar/sql/Schematic_14.java @@ -155,18 +155,18 @@ class Schematic_14 { short height = requireTag(schematic, "Height", ShortTag.class).getValue(); short length = requireTag(schematic, "Length", ShortTag.class).getValue(); - int offsetX = 0; - int offsetY = 0; - int offsetZ = 0; + int originX = 0; + int originY = 0; + int originZ = 0; try { - int originX = requireTag(schematic, "WEOriginX", IntTag.class).getValue(); - int originY = requireTag(schematic, "WEOriginY", IntTag.class).getValue(); - int originZ = requireTag(schematic, "WEOriginZ", IntTag.class).getValue(); + originX = requireTag(schematic, "WEOriginX", IntTag.class).getValue(); + originY = requireTag(schematic, "WEOriginY", IntTag.class).getValue(); + originZ = requireTag(schematic, "WEOriginZ", IntTag.class).getValue(); BlockVector3 min = BlockVector3.at(originX, originY, originZ); - offsetX = requireTag(schematic, "WEOffsetX", IntTag.class).getValue(); - offsetY = requireTag(schematic, "WEOffsetY", IntTag.class).getValue(); - offsetZ = requireTag(schematic, "WEOffsetZ", IntTag.class).getValue(); + int offsetX = requireTag(schematic, "WEOffsetX", IntTag.class).getValue(); + int offsetY = requireTag(schematic, "WEOffsetY", IntTag.class).getValue(); + int offsetZ = requireTag(schematic, "WEOffsetZ", IntTag.class).getValue(); BlockVector3 offset = BlockVector3.at(offsetX, offsetY, offsetZ); origin = min.subtract(offset); @@ -232,9 +232,9 @@ class Schematic_14 { int y = t.getInt("y"); int z = t.getInt("z"); if(faweSchem){ - x -= offsetX; - y -= offsetY; - z -= offsetZ; + x -= originX; + y -= originY; + z -= originZ; } int index = y * width * length + z * width + x;