Fix #428 Electrical Engine shows "no fuel" when inactive

This commit is contained in:
mezz committed 2015-01-01 23:02:18 -08:00
1 parent d436657556
commit e00d96ff08
1 file changed
+1 -1
@@ -184,7 +184,7 @@ public class EngineTin extends Engine implements ISocketable, IInventory {
if (!delayUpdateTimer.delayPassed(worldObj, 80))
return;
if (currentOutput <= 0)
if (!ic2EnergySink.canUseEnergy(euConfig.euForCycle))
setErrorState(EnumErrorCode.NOFUEL);
else
setErrorState(EnumErrorCode.OK);