add flips and rotation for powered and detector rails
This commit is contained in:
parent
e2edef3ed5
commit
f93cab826d
@ -140,7 +140,17 @@ rotationClasses.append(Rail)
|
|||||||
|
|
||||||
def applyThrownBit(array):
|
def applyThrownBit(array):
|
||||||
array[8:16] = array[0:8] | 0x8
|
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:
|
class Lever:
|
||||||
blocktypes = [alphaMaterials.Lever.ID]
|
blocktypes = [alphaMaterials.Lever.ID]
|
||||||
ThrownBit = 0x8
|
ThrownBit = 0x8
|
||||||
|
Reference in New Issue
Block a user