From 4eede3ad02ba6eaf869e1ff80f92e330d9c15fad Mon Sep 17 00:00:00 2001 From: Calclavia Date: Sat, 24 Aug 2013 19:46:08 +0800 Subject: [PATCH] Added transfer threshold to battery --- src/resonantinduction/battery/TileEntityBattery.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/resonantinduction/battery/TileEntityBattery.java b/src/resonantinduction/battery/TileEntityBattery.java index 00adb664f..3e5cdb975 100644 --- a/src/resonantinduction/battery/TileEntityBattery.java +++ b/src/resonantinduction/battery/TileEntityBattery.java @@ -48,6 +48,8 @@ public class TileEntityBattery extends TileEntityUniversalElectrical implements private EnumSet inputSides = EnumSet.allOf(ForgeDirection.class); + private float transferThreshold = 50; + @Override public void updateEntity() { @@ -600,7 +602,7 @@ public class TileEntityBattery extends TileEntityUniversalElectrical implements @Override public float getProvide(ForgeDirection direction) { - return this.getEnergyStored(); + return Math.max(this.getEnergyStored(), this.transferThreshold); } @Override