From 666c968dab175e45f8112ecd9c9dcd1e290b3675 Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Fri, 25 Feb 2011 21:57:18 +0100 Subject: [PATCH] Fixed 'sign'-BlockFace (1!=l). --- src/main/java/net/minecraft/server/ItemSign.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/ItemSign.java b/src/main/java/net/minecraft/server/ItemSign.java index a7ca85bb2f..d2e6bcaaf4 100644 --- a/src/main/java/net/minecraft/server/ItemSign.java +++ b/src/main/java/net/minecraft/server/ItemSign.java @@ -59,7 +59,7 @@ public class ItemSign extends Item { Type eventType = Type.PLAYER_ITEM; Player who = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity(); org.bukkit.inventory.ItemStack itemInHand = new CraftItemStack(itemstack); - BlockFace blockface = CraftBlock.notchToBlockFace(1); + BlockFace blockface = CraftBlock.notchToBlockFace(l); PlayerItemEvent event = new PlayerItemEvent(eventType, who, itemInHand, blockClicked, blockface); craftServer.getPluginManager().callEvent(event);