From 84872acb9728e024f0b4764691f4c18f09f1382e Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Fri, 2 Aug 2013 15:15:45 -0400 Subject: [PATCH] Added Support for Activator Track Added support for rotating the metadata of activator tracks. --- StevenDimDoors/mod_pocketDim/schematic/BlockRotator.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/StevenDimDoors/mod_pocketDim/schematic/BlockRotator.java b/StevenDimDoors/mod_pocketDim/schematic/BlockRotator.java index 75a6e7bd..5997c35d 100644 --- a/StevenDimDoors/mod_pocketDim/schematic/BlockRotator.java +++ b/StevenDimDoors/mod_pocketDim/schematic/BlockRotator.java @@ -61,6 +61,7 @@ public class BlockRotator hasOrientations[Block.blockNetherQuartz.blockID] = true; hasOrientations[Block.railPowered.blockID] = true; hasOrientations[Block.railDetector.blockID] = true; + hasOrientations[Block.railActivator.blockID] = true; hasOrientations[mod_pocketDim.dimDoor.blockID] = true; hasOrientations[mod_pocketDim.ExitDoor.blockID] = true; @@ -106,11 +107,11 @@ public class BlockRotator 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) { - //Powered Track/Detector Track (off) + //Powered Track/Detector Track/Activator Track (off) case 0: metadata = 1; break; @@ -130,7 +131,7 @@ public class BlockRotator metadata = 3; break; - //Powered Track/Detector Track (on) + //Powered Track/Detector Track/Activator Track (on) case 8: metadata = 9; break;