Passive flowers now get replaced with Dead Bushes when they despawn rather than getting removed altogether.

This commit is contained in:
Lizbeth Rika committed 2015-08-17 19:17:23 +01:00
1 parent 826bc924c0
commit b640d681ac
1 file changed
+2 -1
@@ -16,6 +16,7 @@ import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
@@ -74,7 +75,7 @@ public class SubTileGenerating extends SubTileEntity {
if(isPassiveFlower() && muhBalance > 0 && ticksExisted > muhBalance) {
supertile.getWorldObj().playAuxSFX(2001, supertile.xCoord, supertile.yCoord, supertile.zCoord, Block.getIdFromBlock(supertile.getBlockType()));
supertile.getWorldObj().setBlockToAir(supertile.xCoord, supertile.yCoord, supertile.zCoord);
supertile.getWorldObj().setBlock(supertile.xCoord, supertile.yCoord, supertile.zCoord, Blocks.deadbush);
}
}
}