Check if id is present in EnchantmentRewriter

Closes #699
This commit is contained in:
Nassim Jahnke 2024-03-17 19:58:05 +01:00
parent 9d8aa9a232
commit ac86d891fe
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -86,6 +86,9 @@ public class EnchantmentRewriter {
while (iterator.hasNext()) {
CompoundTag enchantmentEntry = iterator.next();
StringTag idTag = enchantmentEntry.getStringTag("id");
if (idTag == null) {
continue;
}
String enchantmentId = idTag.getValue();
String remappedName = enchantmentMappings.get(enchantmentId);