Make creative solar panel quicker

This commit is contained in:
modmuss50 2019-04-03 22:31:16 +01:00
parent afe6a179af
commit 75f06f6f80

View file

@ -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);
}
}
}
}