From 09a55877d4fb3de709d10209d7cd27aa983f6706 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 24 Apr 2011 09:42:40 -1000 Subject: [PATCH] add rotation for straight rails :x --- blockrotation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blockrotation.py b/blockrotation.py index 6d67751..ddc41ab 100644 --- a/blockrotation.py +++ b/blockrotation.py @@ -144,6 +144,11 @@ def applyThrownBit(array): class PoweredDetectorRail(Rail): blocktypes = [alphaMaterials.PoweredRail.ID, alphaMaterials.DetectorRail.ID] PoweredDetectorRail.rotateLeft = genericRotation(PoweredDetectorRail) + +PoweredDetectorRail.rotateLeft[PoweredDetectorRail.NorthSouth] = PoweredDetectorRail.EastWest +PoweredDetectorRail.rotateLeft[PoweredDetectorRail.EastWest] = PoweredDetectorRail.NorthSouth + + PoweredDetectorRail.flipEastWest = genericEastWestFlip(PoweredDetectorRail) PoweredDetectorRail.flipNorthSouth = genericNorthSouthFlip(PoweredDetectorRail) applyThrownBit(PoweredDetectorRail.rotateLeft)