diff options
author | md_5 <git@md-5.net> | 2016-03-04 15:24:51 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-04 15:24:51 +1100 |
commit | 5a3813d7fe49a683eee4a9fdea1ad0725591eec5 (patch) | |
tree | d7d7dcf386662519de2b973058d41526b6db44a2 /nms-patches/BlockRedstoneOre.patch | |
parent | 3e3516e3b29763ccd3c20650a41d378857093280 (diff) | |
download | craftbukkit-5a3813d7fe49a683eee4a9fdea1ad0725591eec5.tar craftbukkit-5a3813d7fe49a683eee4a9fdea1ad0725591eec5.tar.gz craftbukkit-5a3813d7fe49a683eee4a9fdea1ad0725591eec5.tar.lz craftbukkit-5a3813d7fe49a683eee4a9fdea1ad0725591eec5.tar.xz craftbukkit-5a3813d7fe49a683eee4a9fdea1ad0725591eec5.zip |
SPIGOT-1608: Add a way to get the hand used in PlayerInteract*Events
Diffstat (limited to 'nms-patches/BlockRedstoneOre.patch')
-rw-r--r-- | nms-patches/BlockRedstoneOre.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/BlockRedstoneOre.patch b/nms-patches/BlockRedstoneOre.patch index 2a4c70e2..586afb83 100644 --- a/nms-patches/BlockRedstoneOre.patch +++ b/nms-patches/BlockRedstoneOre.patch @@ -29,7 +29,7 @@ + // this.interact(world, blockposition); + // super.stepOn(world, blockposition, entity); + if (entity instanceof EntityHuman) { -+ org.bukkit.event.player.PlayerInteractEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent((EntityHuman) entity, org.bukkit.event.block.Action.PHYSICAL, blockposition, null, null); ++ org.bukkit.event.player.PlayerInteractEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent((EntityHuman) entity, org.bukkit.event.block.Action.PHYSICAL, blockposition, null, null, null); + if (!event.isCancelled()) { + this.interact(world, blockposition, entity); // add entity + super.stepOn(world, blockposition, entity); |