mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
mods be sketchy
This commit is contained in:
parent
f585d814ce
commit
e9e3b14c6a
1 changed files with 0 additions and 1 deletions
|
@ -124,7 +124,6 @@ public final class WorldUtil {
|
|||
IEnergyStorage handlerFrom = tileFrom.getCapability(CapabilityEnergy.ENERGY, sideTo);
|
||||
IEnergyStorage handlerTo = tileTo.getCapability(CapabilityEnergy.ENERGY, opp);
|
||||
if (handlerFrom != null && handlerTo != null) {
|
||||
if(handlerFrom.getEnergyStored() == 0) return;
|
||||
int drain = handlerFrom.extractEnergy(maxTransfer, true);
|
||||
if (drain > 0) {
|
||||
int filled = handlerTo.receiveEnergy(drain, false);
|
||||
|
|
Loading…
Reference in a new issue