From c637b933dc7029d8d3db1db7b2d228a6858ecbd7 Mon Sep 17 00:00:00 2001 From: DemonWav Date: Wed, 27 May 2015 14:59:06 -0500 Subject: [PATCH] Send the packet for the correct container, rather than just the container that is active at the time. - SPIGOT-932 --- .../org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java index ee94dc3c37..8355f36464 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryPlayer.java @@ -70,7 +70,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i index = index + 36; else if (index > 35) index = 8 - (index - 36); - player.playerConnection.sendPacket(new PacketPlayOutSetSlot(player.activeContainer.windowId, index, CraftItemStack.asNMSCopy(item))); + player.playerConnection.sendPacket(new PacketPlayOutSetSlot(player.defaultContainer.windowId, index, CraftItemStack.asNMSCopy(item))); } public int getHeldItemSlot() {