Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +01:00
Fix 1.8 special inventory tracking
Dieser Commit ist enthalten in:
Ursprung
eae145543e
Commit
26719169ee
@ -124,7 +124,7 @@ public class InventoryPackets {
|
|||||||
EntityTracker1_9 entityTracker = wrapper.user().getEntityTracker(Protocol1_9To1_8.class);
|
EntityTracker1_9 entityTracker = wrapper.user().getEntityTracker(Protocol1_9To1_8.class);
|
||||||
|
|
||||||
short slotID = wrapper.get(Type.SHORT, 0);
|
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
|
// Store item in slot
|
||||||
inventoryTracker.setItemId(windowId, slotID, stack == null ? 0 : stack.identifier());
|
inventoryTracker.setItemId(windowId, slotID, stack == null ? 0 : stack.identifier());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren