Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 16:40:10 +01:00
Fix enchantment parsing or lvl integers
Dieser Commit ist enthalten in:
Ursprung
1fe76dbb77
Commit
ab1cc791b7
@ -595,7 +595,7 @@ public class InventoryPackets {
|
|||||||
}
|
}
|
||||||
if (oldId != null) {
|
if (oldId != null) {
|
||||||
enchEntry.put("id", new ShortTag(oldId));
|
enchEntry.put("id", new ShortTag(oldId));
|
||||||
enchEntry.put("lvl", new ShortTag((Short) ((CompoundTag) enchantmentEntry).get("lvl").getValue()));
|
enchEntry.put("lvl", new ShortTag(((NumberTag) ((CompoundTag) enchantmentEntry).get("lvl")).asShort()));
|
||||||
ench.add(enchEntry);
|
ench.add(enchEntry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -616,7 +616,7 @@ public class InventoryPackets {
|
|||||||
}
|
}
|
||||||
if (oldId != null) {
|
if (oldId != null) {
|
||||||
enchEntry.put("id", new ShortTag(oldId));
|
enchEntry.put("id", new ShortTag(oldId));
|
||||||
enchEntry.put("lvl", new ShortTag((Short) ((CompoundTag) enchantmentEntry).get("lvl").getValue()));
|
enchEntry.put("lvl", new ShortTag(((NumberTag) ((CompoundTag) enchantmentEntry).get("lvl")).asShort()));
|
||||||
newStoredEnch.add(enchEntry);
|
newStoredEnch.add(enchEntry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren