SteamWar/SpigotCore
Archiviert
13
0

Hotfix wrong fix

Dieser Commit ist enthalten in:
Lixfel 2020-04-03 19:04:44 +02:00
Ursprung 376f285b5e
Commit aa835be357

Datei anzeigen

@ -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;