Handle fuel value as integer

This commit is contained in:
Blood-Asp 2016-07-27 01:58:32 +02:00 committed by Dream-Master
parent 55bf454318
commit 654efd8a25
2 changed files with 4 additions and 4 deletions

View file

@ -206,8 +206,8 @@ public class GT_ModHandler {
/**
* @return the Value of this Stack, when burning inside a Furnace (200 = 1 Burn Process = 500 EU, max = 32767 (that is 81917.5 EU)), limited to Short because the vanilla Furnace otherwise can't handle it properly, stupid Mojang...
*/
public static short getFuelValue(ItemStack aStack) {
return (short) TileEntityFurnace.getItemBurnTime(aStack);
public static int getFuelValue(ItemStack aStack) {
return TileEntityFurnace.getItemBurnTime(aStack);
}
/**

View file

@ -1749,10 +1749,10 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
rFuelValue = (short) Math.max(rFuelValue, 600);
}
if (GT_Utility.areStacksEqual(aFuel, ItemList.Block_MSSFUEL.get(1, new Object[0]))) {
rFuelValue = (short) Math.max(rFuelValue, 150000);
rFuelValue = Math.max(rFuelValue, 150000);
}
if (GT_Utility.areStacksEqual(aFuel, ItemList.Block_SSFUEL.get(1, new Object[0]))) {
rFuelValue = (short) Math.max(rFuelValue, 100000);
rFuelValue = Math.max(rFuelValue, 100000);
}
return rFuelValue;