Fix item with too high temperature causing items before it to heat for free and items after it to not heat at all (KnightMiner/TinkersComplement#21)
Only item like this in the base mod is block of emerald, but it comes up more frequently in TinkersComplement
@@ -81,7 +81,9 @@ public abstract class TileHeatingStructure<T extends MultiblockDetection> extend
// heat item if possible
if(itemTempRequired[i] > 0) {
// fuel is present, turn up the heat
- if(hasFuel() && canHeat(i)) {
+ if(hasFuel()) {
+ // if the temperature is high enough for the slot
+ if(canHeat(i)) {
// are we done heating?
if(itemTemperatures[i] >= itemTempRequired[i]) {
if(onItemFinishedHeating(stack, i)) {
@@ -95,6 +97,7 @@ public abstract class TileHeatingStructure<T extends MultiblockDetection> extend
heatedItem = true;
}
}
+ }
else {
// can't heat. no fuel. abort and try to get fuel for next tick
this.needsFuel = true;
