From a3b27c8886fc61a681e24deaf7b6614a42fc01ff Mon Sep 17 00:00:00 2001 From: Robotia Date: Sun, 7 Feb 2016 00:19:30 -0500 Subject: [PATCH] Fix #82 --- patches/net/minecraftforge/event/ForgeEventFactory.java.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/net/minecraftforge/event/ForgeEventFactory.java.patch b/patches/net/minecraftforge/event/ForgeEventFactory.java.patch index 6e07f379..8c0e3e8d 100644 --- a/patches/net/minecraftforge/event/ForgeEventFactory.java.patch +++ b/patches/net/minecraftforge/event/ForgeEventFactory.java.patch @@ -128,7 +128,7 @@ + break; + } + if(!(x==0 && y==0 && z == 0 && face==-1)) { -+ org.bukkit.event.player.PlayerInteractEvent eve = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(player, aktor, x, y, z, face, player.getHeldItem()); ++ org.bukkit.event.player.PlayerInteractEvent eve = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(player, aktor, x, y, z, face, player.inventory.getCurrentItem()); + event.cb = eve; + if(eve.isCancelled()) { event.setCanceled(true); return event; } + } @@ -164,7 +164,7 @@ + break; + } + if(!(x==0 && y==0 && z == 0)) { -+ org.bukkit.event.player.PlayerInteractEvent eve = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(player, aktor, x, y, z, face, player.getHeldItem()); ++ org.bukkit.event.player.PlayerInteractEvent eve = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(player, aktor, x, y, z, face, player.inventory.getCurrentItem()); + event.cb = eve; + if(eve.isCancelled()) { event.setCanceled(true); return event; } + }