From 017115aa431efd6a934fff59d5fe39aad3866f58 Mon Sep 17 00:00:00 2001 From: Jordan Byrne Date: Sat, 9 Dec 2017 19:24:47 +1000 Subject: $ Fixed a compile error after refactoring a config variable to a new location. --- src/Java/gtPlusPlus/core/item/general/RF2EU_Battery.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Java/gtPlusPlus/core/item') diff --git a/src/Java/gtPlusPlus/core/item/general/RF2EU_Battery.java b/src/Java/gtPlusPlus/core/item/general/RF2EU_Battery.java index 9c1fdd29f5..7d05a221b9 100644 --- a/src/Java/gtPlusPlus/core/item/general/RF2EU_Battery.java +++ b/src/Java/gtPlusPlus/core/item/general/RF2EU_Battery.java @@ -25,15 +25,15 @@ import net.minecraft.world.World; public class RF2EU_Battery extends ItemEnergyContainer implements IElectricItem, IElectricItemManager, IFuelHandler{ - public static int rfPerEU = 4; + public static double rfPerEU = 3.4; private final String unlocalizedName = "rfEUBattery"; private final ItemStack thisStack; private final static int maxValueEU = 100000000; - private final static int maxValueRF = maxValueEU * rfPerEU; + private final static int maxValueRF = (int) (maxValueEU * rfPerEU); protected double chargeEU = 0; public RF2EU_Battery(){ - super(maxValueRF, maxValueRF, maxValueRF); + super(maxValueRF); GameRegistry.registerFuelHandler(this); //this.setMaxDamage(Integer.MAX_VALUE); //this.setDamage(UtilsItems.getSimpleStack(this), 0); -- cgit