From 058bd748b65b0d787e675ede74d948c787df532c Mon Sep 17 00:00:00 2001 From: feildmaster Date: Sun, 1 Apr 2012 04:58:11 -0500 Subject: [PATCH] Fixed interacting with Air returning a false block. --- .../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 916a90f98d..36d1168252 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -142,7 +142,7 @@ public class CraftEventFactory { if (action != Action.LEFT_CLICK_AIR && action != Action.RIGHT_CLICK_AIR) { throw new IllegalArgumentException(); } - return callPlayerInteractEvent(who, action, 0, 255, 0, 0, itemstack); + return callPlayerInteractEvent(who, action, 0, 256, 0, 0, itemstack); } public static PlayerInteractEvent callPlayerInteractEvent(EntityHuman who, Action action, int clickedX, int clickedY, int clickedZ, int clickedFace, ItemStack itemstack) {