Update ItemRBMKRod.java

Prevents RBMK temperature from skyrocketing to infinity when DisableMeltdowns is enabled by
This commit is contained in:
TehTemmie 2023-04-01 22:23:23 +08:00 committed by GitHub
parent a18820e4b5
commit 3bf082a64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ public class ItemRBMKRod extends Item {
double avg = (heat + hullHeat + coreHeat) / 3D;
this.setCoreHeat(stack, avg);
this.setHullHeat(stack, avg);
return avg;
return avg - heat;
}
if(hullHeat <= heat)