summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockPressurePlateWeighted.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockPressurePlateWeighted.patch')
-rw-r--r--nms-patches/BlockPressurePlateWeighted.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/BlockPressurePlateWeighted.patch b/nms-patches/BlockPressurePlateWeighted.patch
index 2f044428..d24fd748 100644
--- a/nms-patches/BlockPressurePlateWeighted.patch
+++ b/nms-patches/BlockPressurePlateWeighted.patch
@@ -24,7 +24,7 @@
+ org.bukkit.event.Cancellable cancellable;
+
+ if (entity instanceof EntityHuman) {
-+ cancellable = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent((EntityHuman) entity, org.bukkit.event.block.Action.PHYSICAL, blockposition, null, null);
++ cancellable = org.bukkit.craftbukkit.event.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);