diff options
Diffstat (limited to 'nms-patches/ItemBoat.patch')
-rw-r--r-- | nms-patches/ItemBoat.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/ItemBoat.patch b/nms-patches/ItemBoat.patch index daeabd5e..410c84fd 100644 --- a/nms-patches/ItemBoat.patch +++ b/nms-patches/ItemBoat.patch @@ -5,7 +5,7 @@ return new InteractionResultWrapper(EnumInteractionResult.PASS, itemstack); } else { + // CraftBukkit start - Boat placement -+ org.bukkit.event.player.PlayerInteractEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(entityhuman, org.bukkit.event.block.Action.RIGHT_CLICK_BLOCK, movingobjectposition.a(), movingobjectposition.direction, itemstack); ++ org.bukkit.event.player.PlayerInteractEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(entityhuman, org.bukkit.event.block.Action.RIGHT_CLICK_BLOCK, movingobjectposition.a(), movingobjectposition.direction, itemstack, enumhand); + + if (event.isCancelled()) { + return new InteractionResultWrapper(EnumInteractionResult.PASS, itemstack); |