From 6ab777a338f947d05cd0fa668b7412d1ff3abd39 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 31 Mar 2012 18:59:14 -0500 Subject: [PATCH] Fixed breaking at world height in creative. Fixes BUKKIT-997 By: feildmaster --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index df942185a5..916a90f98d 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/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: