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 ){
|
if(tileEntity != null ){
|
||||||
IEnergyStorage energyStorage = tileEntity.getCapability(CapabilityEnergy.ENERGY, facing.getOpposite());
|
IEnergyStorage energyStorage = tileEntity.getCapability(CapabilityEnergy.ENERGY, facing.getOpposite());
|
||||||
if(energyStorage != null){
|
if(energyStorage != null){
|
||||||
energyStorage.receiveEnergy(Integer.MAX_VALUE, false);
|
for (int i = 0; i < 10; i++) {
|
||||||
|
energyStorage.receiveEnergy(Integer.MAX_VALUE, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue