From 606c19e26c65bd0a7869c10d2cbbcb94a24fde7f Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 19 Oct 2019 20:09:26 +1100 Subject: [PATCH] SPIGOT-5373: Simultaneous left+right click in creative mode does not work --- nms-patches/PlayerInteractManager.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nms-patches/PlayerInteractManager.patch b/nms-patches/PlayerInteractManager.patch index a60268c932..7f1ce0bbd7 100644 --- a/nms-patches/PlayerInteractManager.patch +++ b/nms-patches/PlayerInteractManager.patch @@ -242,7 +242,7 @@ } } } -@@ -272,12 +410,41 @@ +@@ -272,12 +410,40 @@ } } @@ -253,7 +253,6 @@ BlockPosition blockposition = movingobjectpositionblock.getBlockPosition(); IBlockData iblockdata = world.getType(blockposition); + EnumInteractionResult enuminteractionresult = EnumInteractionResult.PASS; -+ if (iblockdata.isAir()) return enuminteractionresult; + boolean cancelledBlock = false; if (this.gamemode == EnumGamemode.SPECTATOR) { @@ -284,7 +283,7 @@ if (itileinventory != null) { entityhuman.openContainer(itileinventory); -@@ -289,24 +456,26 @@ +@@ -289,24 +455,26 @@ boolean flag = !entityhuman.getItemInMainHand().isEmpty() || !entityhuman.getItemInOffHand().isEmpty(); boolean flag1 = entityhuman.isSneaking() && flag;