Fix controller appearing as active when redstone mode is set to disabled.
This commit is contained in:
@@ -583,6 +583,10 @@ public class TileController extends TileBase implements ITickable, INetwork, IRe
|
||||
return energyType;
|
||||
}
|
||||
|
||||
if (!redstoneMode.isEnabled(world, pos)) {
|
||||
return ControllerEnergyType.OFF;
|
||||
}
|
||||
|
||||
return getEnergyType(this.energy.getStored(), this.energy.getCapacity());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user