mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 15:56:07 +00:00
Fixed cap banks not receiving power from universal cables.
This commit is contained in:
1 parent
afe9a0b40e
commit
acc7f69dc1
1 file changed
+2
-2
@@ -558,11 +558,11 @@ public class TileCapacitorBank extends TileEntityEio implements IInternalPowerRe
|
||||
public int doReceiveEnergy(ForgeDirection from, int maxReceive, boolean simulate) {
|
||||
double freeSpace = maxStoredEnergy - storedEnergy;
|
||||
freeSpace = Math.min(freeSpace, getMaxInput());
|
||||
int result = (int) Math.min(maxReceive / 10, freeSpace);
|
||||
double result = Math.min((double)maxReceive / 10d, freeSpace);
|
||||
if(!simulate) {
|
||||
doAddEnergy(result);
|
||||
}
|
||||
return result * 10;
|
||||
return (int)(result * 10);
|
||||
}
|
||||
|
||||
public double doGetEnergyStored(ForgeDirection from) {
|
||||
|
||||
Reference in new issue
Block a user