mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-27 13:07:12 +01:00
Fix npe in 1.13 enchant remaps
This commit is contained in:
parent
92e9eab85e
commit
d124b2ddfe
@ -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/")) {
|
||||
|
Loading…
Reference in New Issue
Block a user