summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockTripwire.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/BlockTripwire.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/BlockTripwire.patch')
-rw-r--r--nms-patches/BlockTripwire.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/BlockTripwire.patch b/nms-patches/BlockTripwire.patch
index 22f5e313..249f6c29 100644
--- a/nms-patches/BlockTripwire.patch
+++ b/nms-patches/BlockTripwire.patch
@@ -26,7 +26,7 @@
+ org.bukkit.event.Cancellable cancellable;
+
+ if (object instanceof EntityHuman) {
-+ cancellable = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent((EntityHuman) object, org.bukkit.event.block.Action.PHYSICAL, blockposition, null, null);
++ cancellable = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent((EntityHuman) object, org.bukkit.event.block.Action.PHYSICAL, blockposition, null, null, null);
+ } else if (object instanceof Entity) {
+ cancellable = new EntityInteractEvent(((Entity) object).getBukkitEntity(), block);
+ manager.callEvent((EntityInteractEvent) cancellable);