NeedsRefuel=<true/false> is derpy
vizerei opened this issue ยท 1 comments
Occasionally a routing table containing the "NeedsRefuel" will return "true" even when the locomotive is freshly refueled and full on both water and charcoal/coal.
Find the error and I'll fix it:
@Override
public boolean needsRefuel() {
FluidStack water = tankWater.getFluid();
if (water == null || water.amount < tankWater.getCapacity() / 2)
return true;
if (InvTools.countItems(invFuel) < 16)
return true;
for (IInvSlot slot : InventoryIterator.getIterable(invFuel)) {
ItemStack stack = slot.getStackInSlot();
if (stack == null || stack.stackSize < stack.getMaxStackSize() / 4)
return true;
}
return false;
}