fixed tile entity positioning when flipping N/S and E/W

This commit is contained in:
David Vierra 2011-01-15 20:16:18 -10:00
parent 242944ba4c
commit e1b4242115

View File

@ -1500,7 +1500,7 @@ class MCSchematic (MCLevel):
entity["Dir"].value = northSouthPaintingMap[entity["Dir"].value]
for tileEntity in self.TileEntities:
tileEntity["x"].value = self.Width - tileEntity["x"].value
tileEntity["x"].value = self.Width - tileEntity["x"].value - 1
def flipEastWest(self):
" xxx flip entities "
@ -1523,7 +1523,7 @@ class MCSchematic (MCLevel):
entity["Dir"].value = eastWestPaintingMap[entity["Dir"].value]
for tileEntity in self.TileEntities:
tileEntity["z"].value = self.Length - tileEntity["z"].value
tileEntity["z"].value = self.Length - tileEntity["z"].value - 1
@decompress_first