summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockRedstoneOre.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-03-04 15:24:51 +1100
committermd_5 <git@md-5.net>2016-03-04 15:24:51 +1100
commit5a3813d7fe49a683eee4a9fdea1ad0725591eec5 (patch)
treed7d7dcf386662519de2b973058d41526b6db44a2 /nms-patches/BlockRedstoneOre.patch
parent3e3516e3b29763ccd3c20650a41d378857093280 (diff)
downloadcraftbukkit-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.patch2
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);