Handle fuel value as integer
This commit is contained in:
parent
55bf454318
commit
654efd8a25
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue