Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-09-07 21:32:52 +02:00
Fix npe in 1.13 enchant remaps
Dieser Commit ist enthalten in:
Ursprung
92e9eab85e
Commit
d124b2ddfe
@ -710,7 +710,7 @@ public class BlockItemPackets1_13 extends BlockItemRewriter<Protocol1_12_2To1_13
|
|||||||
if (enchantmentMappings.containsKey(newId)) {
|
if (enchantmentMappings.containsKey(newId)) {
|
||||||
lore.add(new StringTag("", enchantmentMappings.get(newId)));
|
lore.add(new StringTag("", enchantmentMappings.get(newId)));
|
||||||
noMapped.add(enchantmentEntry);
|
noMapped.add(enchantmentEntry);
|
||||||
} else {
|
} else if (!newId.isEmpty()) {
|
||||||
dummyEnchatment = false;
|
dummyEnchatment = false;
|
||||||
Short oldId = MappingData.oldEnchantmentsIds.inverse().get(newId);
|
Short oldId = MappingData.oldEnchantmentsIds.inverse().get(newId);
|
||||||
if (oldId == null && newId.startsWith("viaversion:legacy/")) {
|
if (oldId == null && newId.startsWith("viaversion:legacy/")) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren