Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Fix #82
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer committed Feb 7, 2016
1 parent d28b170 commit a3b27c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/net/minecraftforge/event/ForgeEventFactory.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
+ }
Expand Down Expand Up @@ -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; }
+ }
Expand Down

0 comments on commit a3b27c8

Please sign in to comment.