Fixed crash bug with reeds

This commit is contained in:
Adubbz 2013-09-24 09:32:22 +10:00
parent 05945b7bcd
commit e2547f6f1d
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public class ItemBlockPlant extends ItemBlock
if (id == Block.snow.blockID && (world.getBlockMetadata(x, y, z) & 7) < 1) {
side = 1;
} else if (!Block.blocksList[id].isBlockReplaceable(world, x, y, z))
} else if (Block.blocksList[id] != null && !Block.blocksList[id].isBlockReplaceable(world, x, y, z))
{
if (side == 0) {
--y;