fix detectors.. NEXT!

This commit is contained in:
Raoul Van den Berge
2015-12-21 20:38:33 +01:00
parent a1a014d0c5
commit 81ee8cf7af
8 changed files with 90 additions and 29 deletions

View File

@@ -5,8 +5,9 @@ import net.minecraft.nbt.NBTTagCompound;
public abstract class TileMachine extends TileBase implements INetworkTile, IRedstoneModeSetting {
protected boolean connected = false;
protected boolean redstoneControlled = true;
private RedstoneMode redstoneMode = RedstoneMode.LOW;
private RedstoneMode redstoneMode = RedstoneMode.IGNORE;
private int xController;
private int yController;
@@ -48,7 +49,9 @@ public abstract class TileMachine extends TileBase implements INetworkTile, IRed
@Override
public void setRedstoneMode(RedstoneMode mode) {
this.redstoneMode = mode;
if (redstoneControlled) {
this.redstoneMode = mode;
}
}
@Override