fixed rotation for action direction

This commit is contained in:
SpaceToad 2014-03-19 15:36:48 +01:00
parent 1984eca2ab
commit ba2d66e81a

View file

@ -13,6 +13,7 @@ import java.util.Locale;
import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon; import net.minecraft.util.IIcon;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
import buildcraft.BuildCraftTransport;
import buildcraft.api.gates.IAction; import buildcraft.api.gates.IAction;
import buildcraft.core.triggers.BCAction; import buildcraft.core.triggers.BCAction;
@ -44,6 +45,6 @@ public class ActionPipeDirection extends BCAction {
@Override @Override
public IAction rotateLeft() { public IAction rotateLeft() {
return new ActionPipeDirection(direction.getRotation(ForgeDirection.UP)); return BuildCraftTransport.actionPipeDirection [direction.getRotation(ForgeDirection.UP).ordinal()];
} }
} }