From aa835be35780e6341ee494cf4b0fffc0bfd9ff87 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 3 Apr 2020 19:04:44 +0200 Subject: [PATCH] Hotfix wrong fix --- .../src/de/steamwar/sql/Schematic_14.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/SpigotCore_14/src/de/steamwar/sql/Schematic_14.java b/SpigotCore_14/src/de/steamwar/sql/Schematic_14.java index 2e02468..dc38d46 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 originX = 0; - int originY = 0; - int originZ = 0; + int offsetX = 0; + int offsetY = 0; + int offsetZ = 0; try { - originX = requireTag(schematic, "WEOriginX", IntTag.class).getValue(); - originY = requireTag(schematic, "WEOriginY", IntTag.class).getValue(); - originZ = requireTag(schematic, "WEOriginZ", IntTag.class).getValue(); + int originX = requireTag(schematic, "WEOriginX", IntTag.class).getValue(); + int originY = requireTag(schematic, "WEOriginY", IntTag.class).getValue(); + int originZ = requireTag(schematic, "WEOriginZ", IntTag.class).getValue(); BlockVector3 min = BlockVector3.at(originX, originY, originZ); - int offsetX = requireTag(schematic, "WEOffsetX", IntTag.class).getValue(); - int offsetY = requireTag(schematic, "WEOffsetY", IntTag.class).getValue(); - int offsetZ = requireTag(schematic, "WEOffsetZ", IntTag.class).getValue(); + offsetX = requireTag(schematic, "WEOffsetX", IntTag.class).getValue(); + offsetY = requireTag(schematic, "WEOffsetY", IntTag.class).getValue(); + 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 -= originX; - y -= originY; - z -= originZ; + x -= offsetX; + y -= offsetY; + z -= offsetZ; } int index = y * width * length + z * width + x;