From fe94efd28a5d7ad0d71ce5b329bf1060342e7f36 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 7 Oct 2010 10:53:03 -1000 Subject: [PATCH] correct door rotation --- blockrotation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blockrotation.py b/blockrotation.py index ce5f6cb..9135946 100644 --- a/blockrotation.py +++ b/blockrotation.py @@ -65,10 +65,10 @@ def RotateLeft(blocks, data): # Doors - doorRotation = array([3, 2, 1, 0, - 7, 6, 5, 4, #swung door - 11, 10, 9, 8, #top half - 15, 14, 13, 12]) #top half swung + doorRotation = array([3, 0, 1, 2, + 7, 4, 5, 6, #swung door + 11, 8, 9, 10, #top half + 15, 12, 13, 14]) #top half swung doorIndexes = (blocks == alphaMaterials.materialNamed("Iron Door") ) | (blocks == alphaMaterials.materialNamed("Wooden Door")) print "Rotating doors: ", len(doorIndexes.nonzero()[0]);