mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixed radiolysis machine crashing when running too fast
This commit is contained in:
parent
218b43933e
commit
646d22b4e4
@ -127,7 +127,7 @@ public class TileEntityMachineRadiolysis extends TileEntityMachineBase implement
|
||||
setupTanks();
|
||||
|
||||
if(heat > 100) {
|
||||
int crackTime = (int) Math.min(-0.1 * (heat - 100) + 30, 5);
|
||||
int crackTime = (int) Math.max(-0.1 * (heat - 100) + 30, 5);
|
||||
|
||||
if(worldObj.getTotalWorldTime() % crackTime == 0)
|
||||
crack();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user