mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-24 05:44:24 +00:00
Fix crash from TriggerLowLiquid
This commit is contained in:
1 parent
3a5275396b
commit
393bd691d8
1 file changed
+2
@@ -50,6 +50,8 @@ public class TriggerLowLiquid extends Trigger {
|
||||
|
||||
TankManager tankManager = ((TileFarmPlain) central).getTankManager();
|
||||
FluidTankInfo info = tankManager.getTankInfo(0);
|
||||
if (info.fluid == null)
|
||||
return true;
|
||||
return ((float) info.fluid.amount / info.capacity) <= threshold;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user