Make creative solar panel quicker
This commit is contained in:
parent
afe6a179af
commit
75f06f6f80
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ public class TileCreativeSolarPanel extends TilePowerAcceptor implements IToolDr
|
|||
if(tileEntity != null ){
|
||||
IEnergyStorage energyStorage = tileEntity.getCapability(CapabilityEnergy.ENERGY, facing.getOpposite());
|
||||
if(energyStorage != null){
|
||||
energyStorage.receiveEnergy(Integer.MAX_VALUE, false);
|
||||
for (int i = 0; i < 10; i++) {
|
||||
energyStorage.receiveEnergy(Integer.MAX_VALUE, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue