From 654efd8a255d1f08ebd53741353bbb80af074c4a Mon Sep 17 00:00:00 2001 From: Blood-Asp Date: Wed, 27 Jul 2016 01:58:32 +0200 Subject: [PATCH] Handle fuel value as integer --- src/main/java/gregtech/api/util/GT_ModHandler.java | 4 ++-- src/main/java/gregtech/common/GT_Proxy.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/gregtech/api/util/GT_ModHandler.java b/src/main/java/gregtech/api/util/GT_ModHandler.java index 83fe3ff5..be85ca29 100644 --- a/src/main/java/gregtech/api/util/GT_ModHandler.java +++ b/src/main/java/gregtech/api/util/GT_ModHandler.java @@ -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); } /** diff --git a/src/main/java/gregtech/common/GT_Proxy.java b/src/main/java/gregtech/common/GT_Proxy.java index 95f71a12..16303f8a 100644 --- a/src/main/java/gregtech/common/GT_Proxy.java +++ b/src/main/java/gregtech/common/GT_Proxy.java @@ -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;