diff options
Diffstat (limited to 'nms-patches/ItemMinecart.patch')
-rw-r--r-- | nms-patches/ItemMinecart.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/ItemMinecart.patch b/nms-patches/ItemMinecart.patch index ed8f094a..ea190ef9 100644 --- a/nms-patches/ItemMinecart.patch +++ b/nms-patches/ItemMinecart.patch @@ -57,7 +57,7 @@ return itemstack; } -@@ -73,6 +107,14 @@ +@@ -75,6 +109,14 @@ d0 = 0.5D; } @@ -65,7 +65,7 @@ + org.bukkit.event.player.PlayerInteractEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(entityhuman, org.bukkit.event.block.Action.RIGHT_CLICK_BLOCK, blockposition, enumdirection, itemstack); + + if (event.isCancelled()) { -+ return false; ++ return EnumInteractionResult.PASS; + } + // CraftBukkit end + |