3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-27 08:30:10 +01:00

Check if id is present in EnchantmentRewriter

Closes #699
Dieser Commit ist enthalten in:
Nassim Jahnke 2024-03-17 19:58:05 +01:00
Ursprung 9d8aa9a232
Commit ac86d891fe
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

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