diff options
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); |