From 6d5a66f00fc87ebeb7b6560ed66ca11ccf35f635 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 30 Nov 2016 15:33:29 +1100 Subject: [PATCH] SPIGOT-2867: Update inventory on cancelled interacts too --- nms-patches/PlayerInteractManager.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nms-patches/PlayerInteractManager.patch b/nms-patches/PlayerInteractManager.patch index ef69a87958..ba41f0f422 100644 --- a/nms-patches/PlayerInteractManager.patch +++ b/nms-patches/PlayerInteractManager.patch @@ -224,7 +224,7 @@ return flag; } } -@@ -280,63 +419,85 @@ +@@ -280,63 +419,86 @@ } } @@ -280,6 +280,7 @@ + } else if (blockdata.getBlock() instanceof BlockCake) { + ((EntityPlayer) entityhuman).getBukkitEntity().sendHealthUpdate(); // SPIGOT-1341 - reset health for cake + } ++ ((EntityPlayer) entityhuman).getBukkitEntity().updateInventory(); // SPIGOT-2867 + enuminteractionresult = (event.useItemInHand() != Event.Result.ALLOW) ? EnumInteractionResult.SUCCESS : EnumInteractionResult.PASS; + } else if (this.gamemode == EnumGamemode.SPECTATOR) { + TileEntity tileentity = world.getTileEntity(blockposition);