Fixed crash bug with reeds
This commit is contained in:
parent
05945b7bcd
commit
e2547f6f1d
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ public class ItemBlockPlant extends ItemBlock
|
||||||
|
|
||||||
if (id == Block.snow.blockID && (world.getBlockMetadata(x, y, z) & 7) < 1) {
|
if (id == Block.snow.blockID && (world.getBlockMetadata(x, y, z) & 7) < 1) {
|
||||||
side = 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) {
|
if (side == 0) {
|
||||||
--y;
|
--y;
|
||||||
|
|
Loading…
Reference in a new issue