When did I even do this fix..?

Was I sleepwalking or something?
This commit is contained in:
Ellpeck 2015-12-05 12:12:12 +01:00
parent 2cd7bea732
commit ab7de39198

View file

@ -31,7 +31,7 @@ public class TileEntityGreenhouseGlass extends TileEntityBase{
this.timeUntilNextFert--;
if(timeUntilNextFert <= 0){
WorldPos blockToFert = this.blockToFertilize();
if(this.blockToFertilize() != null){
if(blockToFert != null){
int metaBefore = blockToFert.getMetadata();
worldObj.getBlock(blockToFert.getX(), blockToFert.getY(), blockToFert.getZ()).updateTick(worldObj, blockToFert.getX(), blockToFert.getY(), blockToFert.getZ(), Util.RANDOM);