Fix 1.8 special inventory tracking

This commit is contained in:
KennyTV 2021-06-20 16:15:48 +02:00
parent eae145543e
commit 26719169ee
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class InventoryPackets {
EntityTracker1_9 entityTracker = wrapper.user().getEntityTracker(Protocol1_9To1_8.class);
short slotID = wrapper.get(Type.SHORT, 0);
short windowId = wrapper.get(Type.UNSIGNED_BYTE, 0);
byte windowId = wrapper.get(Type.UNSIGNED_BYTE, 0).byteValue();
// Store item in slot
inventoryTracker.setItemId(windowId, slotID, stack == null ? 0 : stack.identifier());