Fix npe in 1.13 enchant remaps

This commit is contained in:
KennyTV 2019-06-30 11:23:42 +02:00
parent 92e9eab85e
commit d124b2ddfe

View File

@ -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/")) {