diff --git a/src/main/java/biomesoplenty/common/blocks/templates/BOPBlockWorldDecor.java b/src/main/java/biomesoplenty/common/blocks/templates/BOPBlockWorldDecor.java index 4040730af..3438882ff 100644 --- a/src/main/java/biomesoplenty/common/blocks/templates/BOPBlockWorldDecor.java +++ b/src/main/java/biomesoplenty/common/blocks/templates/BOPBlockWorldDecor.java @@ -35,8 +35,8 @@ public abstract class BOPBlockWorldDecor extends BlockBush public boolean canReplace(World world, int x, int y, int z, int side, ItemStack itemStack) { if (world.getBlock(x, y - 1, z) == Blocks.air) return false; - - return isValidPosition(world, x, y, z, itemStack.getItemDamage()); + + return isValidPosition(world, x, y, z, itemStack != null ? itemStack.getItemDamage() : 0); } public void dropIfCantStay(World world, int x, int y, int z, ItemStack stack)