3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-07-27 01:18:04 +02:00

Fix npe in 1.13 enchant remaps

Dieser Commit ist enthalten in:
KennyTV 2019-06-30 11:23:42 +02:00
Ursprung 92e9eab85e
Commit d124b2ddfe

Datei anzeigen

@ -710,7 +710,7 @@ public class BlockItemPackets1_13 extends BlockItemRewriter<Protocol1_12_2To1_13
if (enchantmentMappings.containsKey(newId)) {
lore.add(new StringTag("", enchantmentMappings.get(newId)));
noMapped.add(enchantmentEntry);
} else {
} else if (!newId.isEmpty()) {
dummyEnchatment = false;
Short oldId = MappingData.oldEnchantmentsIds.inverse().get(newId);
if (oldId == null && newId.startsWith("viaversion:legacy/")) {