mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 10:20:42 +01:00
Use cursor item in windows packet (thanks mojang)
This commit is contained in:
parent
e150a6542a
commit
aa1fc186f0
@ -253,7 +253,7 @@ public class PlayerInventory extends AbstractInventory implements EquipmentHandl
|
||||
final int slot = convertToPacketSlot(i);
|
||||
convertedSlots[slot] = itemStacks[i];
|
||||
}
|
||||
return new WindowItemsPacket((byte) 0, 0, convertedSlots, ItemStack.AIR);
|
||||
return new WindowItemsPacket((byte) 0, 0, convertedSlots, cursorItem);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user