mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 14:33:56 +01:00
Send the packet for the correct container, rather than just the container that is active at the time. - SPIGOT-932
This commit is contained in:
parent
01930e268e
commit
c637b933dc
@ -70,7 +70,7 @@ public class CraftInventoryPlayer extends CraftInventory implements org.bukkit.i
|
|||||||
index = index + 36;
|
index = index + 36;
|
||||||
else if (index > 35)
|
else if (index > 35)
|
||||||
index = 8 - (index - 36);
|
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() {
|
public int getHeldItemSlot() {
|
||||||
|
Loading…
Reference in New Issue
Block a user