Added Support for Activator Track

Added support for rotating the metadata of activator tracks.
This commit is contained in:
SenseiKiwi 2013-08-02 15:15:45 -04:00
parent 81bac7b7ff
commit 84872acb97

View file

@ -61,6 +61,7 @@ public class BlockRotator
hasOrientations[Block.blockNetherQuartz.blockID] = true; hasOrientations[Block.blockNetherQuartz.blockID] = true;
hasOrientations[Block.railPowered.blockID] = true; hasOrientations[Block.railPowered.blockID] = true;
hasOrientations[Block.railDetector.blockID] = true; hasOrientations[Block.railDetector.blockID] = true;
hasOrientations[Block.railActivator.blockID] = true;
hasOrientations[mod_pocketDim.dimDoor.blockID] = true; hasOrientations[mod_pocketDim.dimDoor.blockID] = true;
hasOrientations[mod_pocketDim.ExitDoor.blockID] = true; hasOrientations[mod_pocketDim.ExitDoor.blockID] = true;
@ -106,11 +107,11 @@ public class BlockRotator
metadata = (metadata - 2) % 2 + 3; metadata = (metadata - 2) % 2 + 3;
} }
} }
else if (blockID == Block.railPowered.blockID || blockID == Block.railDetector.blockID) else if (blockID == Block.railPowered.blockID || blockID == Block.railDetector.blockID || blockID == Block.railActivator.blockID)
{ {
switch (metadata) switch (metadata)
{ {
//Powered Track/Detector Track (off) //Powered Track/Detector Track/Activator Track (off)
case 0: case 0:
metadata = 1; metadata = 1;
break; break;
@ -130,7 +131,7 @@ public class BlockRotator
metadata = 3; metadata = 3;
break; break;
//Powered Track/Detector Track (on) //Powered Track/Detector Track/Activator Track (on)
case 8: case 8:
metadata = 9; metadata = 9;
break; break;