Merge remote-tracking branch 'origin/master' into dev

This commit is contained in:
Nassim Jahnke 2021-10-11 11:06:27 +02:00
commit fe644127c1
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -87,10 +87,10 @@ public class EnchantmentRewriter {
Iterator<Tag> iterator = enchantments.iterator();
while (iterator.hasNext()) {
CompoundTag enchantmentEntry = (CompoundTag) iterator.next();
StringTag idTag = enchantmentEntry.get("id");
if (idTag == null) continue;
Tag idTag = enchantmentEntry.get("id");
if (!(idTag instanceof StringTag)) continue;
String enchantmentId = idTag.getValue();
String enchantmentId = ((StringTag) idTag).getValue();
String remappedName = enchantmentMappings.get(enchantmentId);
if (remappedName != null) {
if (!changed) {