From 2510af0d1aa6f2e7b0404d3b6dcd2bb4ffdbe1e8 Mon Sep 17 00:00:00 2001 From: Tahg Date: Thu, 1 Mar 2012 21:26:00 -0500 Subject: [PATCH] Fix porting issue in World.mayPlace Fixes BUKKIT-915 --- src/main/java/net/minecraft/server/World.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 2202b0ed10..e0ca78ab7b 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -2555,7 +2555,7 @@ public class World implements IBlockAccess { if (axisalignedbb != null && !this.containsEntity(axisalignedbb)) { defaultReturn = false; // CraftBukkit } else { - if (block == Block.WATER || block == Block.STATIONARY_WATER || block == Block.LAVA || block == Block.STATIONARY_LAVA || block == Block.FIRE || block == Block.SNOW || block == Block.VINE) { + if (block != null && (block == Block.WATER || block == Block.STATIONARY_WATER || block == Block.LAVA || block == Block.STATIONARY_LAVA || block == Block.FIRE || block.material.isReplacable())) { block = null; }