add flips and rotation for powered and detector rails
This commit is contained in:
parent
e2edef3ed5
commit
f93cab826d
@ -141,6 +141,16 @@ rotationClasses.append(Rail)
|
||||
def applyThrownBit(array):
|
||||
array[8:16] = array[0:8] | 0x8
|
||||
|
||||
class PoweredDetectorRail(Rail):
|
||||
blocktypes = [alphaMaterials.PoweredRail.ID, alphaMaterials.DetectorRail.ID]
|
||||
PoweredDetectorRail.rotateLeft = genericRotation(PoweredDetectorRail)
|
||||
PoweredDetectorRail.flipEastWest = genericEastWestFlip(PoweredDetectorRail)
|
||||
PoweredDetectorRail.flipNorthSouth = genericNorthSouthFlip(PoweredDetectorRail)
|
||||
applyThrownBit(PoweredDetectorRail.rotateLeft)
|
||||
applyThrownBit(PoweredDetectorRail.flipEastWest)
|
||||
applyThrownBit(PoweredDetectorRail.flipNorthSouth)
|
||||
|
||||
|
||||
class Lever:
|
||||
blocktypes = [alphaMaterials.Lever.ID]
|
||||
ThrownBit = 0x8
|
||||
|
Reference in New Issue
Block a user