Made the oil generator turn-off-able with redstone

Closes #384
This commit is contained in:
Ellpeck 2016-11-21 21:19:10 +01:00
parent e65874a4ce
commit a0541d1160

View file

@ -112,7 +112,7 @@ public class TileEntityOilGenerator extends TileEntityBase implements ISharingEn
this.currentBurnTime--; this.currentBurnTime--;
this.storage.receiveEnergy(this.currentEnergyProduce, false); this.storage.receiveEnergy(this.currentEnergyProduce, false);
} }
else{ else if(!this.isRedstonePowered){
int fuelUsed = 50; int fuelUsed = 50;
OilGenRecipe recipe = this.getRecipeForCurrentFluid(); OilGenRecipe recipe = this.getRecipeForCurrentFluid();