Made Firework box redstoneturnoffable

This commit is contained in:
Ellpeck 2015-12-16 20:07:22 +01:00
parent a41f73cf7a
commit 4e83aff1b1

View file

@ -32,7 +32,7 @@ public class TileEntityFireworkBox extends TileEntityBase implements IEnergyRece
@Override
public void updateEntity(){
if(!this.worldObj.isRemote){
if(!this.worldObj.isRemote && !this.isRedstonePowered){
if(this.timeUntilNextFirework > 0){
this.timeUntilNextFirework--;
if(this.timeUntilNextFirework <= 0 && this.storage.getEnergyStored() >= USE_PER_SHOT){