correct door rotation
This commit is contained in:
parent
2b5607237b
commit
fe94efd28a
@ -65,10 +65,10 @@ def RotateLeft(blocks, data):
|
|||||||
|
|
||||||
|
|
||||||
# Doors
|
# Doors
|
||||||
doorRotation = array([3, 2, 1, 0,
|
doorRotation = array([3, 0, 1, 2,
|
||||||
7, 6, 5, 4, #swung door
|
7, 4, 5, 6, #swung door
|
||||||
11, 10, 9, 8, #top half
|
11, 8, 9, 10, #top half
|
||||||
15, 14, 13, 12]) #top half swung
|
15, 12, 13, 14]) #top half swung
|
||||||
|
|
||||||
doorIndexes = (blocks == alphaMaterials.materialNamed("Iron Door") ) | (blocks == alphaMaterials.materialNamed("Wooden Door"))
|
doorIndexes = (blocks == alphaMaterials.materialNamed("Iron Door") ) | (blocks == alphaMaterials.materialNamed("Wooden Door"))
|
||||||
print "Rotating doors: ", len(doorIndexes.nonzero()[0]);
|
print "Rotating doors: ", len(doorIndexes.nonzero()[0]);
|
||||||
|
Reference in New Issue
Block a user