From bb8d9fbe9d34e6bf26e84b1f96dfa5a3c0a1eb3c Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Fri, 25 Feb 2011 23:42:08 +0100 Subject: [PATCH] More PLAYER_ITEM blockFace fixes of static fails; (1!=l) -- Thanks Scient for pointing it out --- src/main/java/net/minecraft/server/ItemHoe.java | 2 +- src/main/java/net/minecraft/server/ItemMinecart.java | 2 +- src/main/java/net/minecraft/server/ItemRedstone.java | 2 +- src/main/java/net/minecraft/server/ItemSeeds.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/minecraft/server/ItemHoe.java b/src/main/java/net/minecraft/server/ItemHoe.java index 341d14855e..a8db7f8867 100644 --- a/src/main/java/net/minecraft/server/ItemHoe.java +++ b/src/main/java/net/minecraft/server/ItemHoe.java @@ -40,7 +40,7 @@ public class ItemHoe extends Item { Player who = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity(); org.bukkit.inventory.ItemStack itemInHand = new CraftItemStack(itemstack); org.bukkit.block.Block blockClicked = craftWorld.getBlockAt(i, j, k); - BlockFace blockFace = CraftBlock.notchToBlockFace(1); + BlockFace blockFace = CraftBlock.notchToBlockFace(l); PlayerItemEvent event = new PlayerItemEvent(eventType, who, itemInHand, blockClicked, blockFace); craftServer.getPluginManager().callEvent(event); diff --git a/src/main/java/net/minecraft/server/ItemMinecart.java b/src/main/java/net/minecraft/server/ItemMinecart.java index 7de9701a93..68a30d2bec 100644 --- a/src/main/java/net/minecraft/server/ItemMinecart.java +++ b/src/main/java/net/minecraft/server/ItemMinecart.java @@ -34,7 +34,7 @@ public class ItemMinecart extends Item { Player who = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity(); org.bukkit.inventory.ItemStack itemInHand = new CraftItemStack(itemstack); org.bukkit.block.Block blockClicked = craftWorld.getBlockAt(i, j, k); - BlockFace blockFace = CraftBlock.notchToBlockFace(1); + BlockFace blockFace = CraftBlock.notchToBlockFace(l); PlayerItemEvent event = new PlayerItemEvent(eventType, who, itemInHand, blockClicked, blockFace); craftServer.getPluginManager().callEvent(event); diff --git a/src/main/java/net/minecraft/server/ItemRedstone.java b/src/main/java/net/minecraft/server/ItemRedstone.java index a534cec856..6c11122111 100644 --- a/src/main/java/net/minecraft/server/ItemRedstone.java +++ b/src/main/java/net/minecraft/server/ItemRedstone.java @@ -56,7 +56,7 @@ public class ItemRedstone 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); diff --git a/src/main/java/net/minecraft/server/ItemSeeds.java b/src/main/java/net/minecraft/server/ItemSeeds.java index 2ddb68cca4..8599ddfca3 100644 --- a/src/main/java/net/minecraft/server/ItemSeeds.java +++ b/src/main/java/net/minecraft/server/ItemSeeds.java @@ -35,7 +35,7 @@ public class ItemSeeds extends Item { Player who = (entityhuman == null) ? null : (Player) entityhuman.getBukkitEntity(); org.bukkit.inventory.ItemStack itemInHand = new CraftItemStack(itemstack); org.bukkit.block.Block blockClicked = craftWorld.getBlockAt(i, j, k); - BlockFace blockface = CraftBlock.notchToBlockFace(1); + BlockFace blockface = CraftBlock.notchToBlockFace(l); PlayerItemEvent event = new PlayerItemEvent(eventType, who, itemInHand, blockClicked, blockface); craftServer.getPluginManager().callEvent(event);