mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-23 07:38:34 +01:00
Made Firework box redstoneturnoffable
This commit is contained in:
parent
a41f73cf7a
commit
4e83aff1b1
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ public class TileEntityFireworkBox extends TileEntityBase implements IEnergyRece
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateEntity(){
|
public void updateEntity(){
|
||||||
if(!this.worldObj.isRemote){
|
if(!this.worldObj.isRemote && !this.isRedstonePowered){
|
||||||
if(this.timeUntilNextFirework > 0){
|
if(this.timeUntilNextFirework > 0){
|
||||||
this.timeUntilNextFirework--;
|
this.timeUntilNextFirework--;
|
||||||
if(this.timeUntilNextFirework <= 0 && this.storage.getEnergyStored() >= USE_PER_SHOT){
|
if(this.timeUntilNextFirework <= 0 && this.storage.getEnergyStored() >= USE_PER_SHOT){
|
||||||
|
|
Loading…
Reference in a new issue