summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockSoil.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/BlockSoil.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/BlockSoil.patch')
-rw-r--r--nms-patches/BlockSoil.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/BlockSoil.patch b/nms-patches/BlockSoil.patch
index 51b19199..eb2caefc 100644
--- a/nms-patches/BlockSoil.patch
+++ b/nms-patches/BlockSoil.patch
@@ -35,7 +35,7 @@
+ // CraftBukkit start - Interact soil
+ org.bukkit.event.Cancellable cancellable;
+ if (entity instanceof EntityHuman) {
-+ cancellable = CraftEventFactory.callPlayerInteractEvent((EntityHuman) entity, org.bukkit.event.block.Action.PHYSICAL, blockposition, null, null);
++ cancellable = CraftEventFactory.callPlayerInteractEvent((EntityHuman) entity, org.bukkit.event.block.Action.PHYSICAL, blockposition, null, null, null);
+ } else {
+ cancellable = new EntityInteractEvent(entity.getBukkitEntity(), world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()));
+ world.getServer().getPluginManager().callEvent((EntityInteractEvent) cancellable);