From c8d4a7c835777d3c9a002444a1a43286067cb8a5 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Sat, 31 Mar 2012 18:59:14 -0500 Subject: [PATCH] Fixed breaking at world height in creative. Fixes BUKKIT-997 --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index df942185a5..916a90f98d 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -155,7 +155,7 @@ public class CraftEventFactory { Block blockClicked = craftWorld.getBlockAt(clickedX, clickedY, clickedZ); BlockFace blockFace = CraftBlock.notchToBlockFace(clickedFace); - if (clickedY == 255) { + if (clickedY > 255) { blockClicked = null; switch (action) { case LEFT_CLICK_BLOCK: