Added missing configuration for Lava Factory

This commit is contained in:
OneEyeMaker 2017-10-03 11:51:00 +03:00
parent cfbbf9d59d
commit f0f3ae4ffe

View file

@ -60,7 +60,7 @@ public class TileEntityLavaFactoryController extends TileEntityBase implements I
int energyUse = ConfigIntValues.LAVA_FACTORY_ENERGY_USE.getValue();
if(this.storage.getEnergyStored() >= energyUse && this.isMultiblock() == HAS_AIR){
this.currentWorkTime++;
if(this.currentWorkTime >= 200){
if(this.currentWorkTime >= ConfigIntValues.LAVA_FACTORY_PRODUCTION_DURATION.getValue()){
this.currentWorkTime = 0;
this.world.setBlockState(this.pos.up(), Blocks.LAVA.getDefaultState(), 2);
this.storage.extractEnergyInternal(energyUse, false);