fix charging table storing negative RF
This commit is contained in:
parent
31742b3c96
commit
c82fa36033
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import cpw.mods.fml.common.FMLCommonHandler;
|
|||
import cofh.api.energy.IEnergyContainerItem;
|
||||
|
||||
import buildcraft.api.tiles.IHasWork;
|
||||
import buildcraft.core.utils.StringUtils;
|
||||
import buildcraft.core.lib.utils.StringUtils;
|
||||
|
||||
public class TileChargingTable extends TileLaserTableBase implements IHasWork {
|
||||
@Override
|
||||
|
@ -27,7 +27,7 @@ public class TileChargingTable extends TileLaserTableBase implements IHasWork {
|
|||
addEnergy(0 - containerItem.receiveEnergy(stack, getEnergy(), false));
|
||||
this.setInventorySlotContents(0, stack);
|
||||
} else {
|
||||
addEnergy(-10);
|
||||
subtractEnergy(Math.min(getEnergy(), 10));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue