3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

Send the packet for the correct container, rather than just the container that is active at the time. - SPIGOT-932

Dieser Commit ist enthalten in:
DemonWav 2015-05-27 14:59:06 -05:00 committet von md_5
Ursprung 01930e268e
Commit c637b933dc

Datei anzeigen

@ -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() {