mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-25 12:45:35 +01:00
parent
3d6c31c479
commit
71cc1ca4b5
@ -87,10 +87,10 @@ public class EnchantmentRewriter {
|
|||||||
Iterator<Tag> iterator = enchantments.iterator();
|
Iterator<Tag> iterator = enchantments.iterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
CompoundTag enchantmentEntry = (CompoundTag) iterator.next();
|
CompoundTag enchantmentEntry = (CompoundTag) iterator.next();
|
||||||
StringTag idTag = enchantmentEntry.get("id");
|
Tag idTag = enchantmentEntry.get("id");
|
||||||
if (idTag == null) continue;
|
if (!(idTag instanceof StringTag)) continue;
|
||||||
|
|
||||||
String enchantmentId = idTag.getValue();
|
String enchantmentId = ((StringTag) idTag).getValue();
|
||||||
String remappedName = enchantmentMappings.get(enchantmentId);
|
String remappedName = enchantmentMappings.get(enchantmentId);
|
||||||
if (remappedName != null) {
|
if (remappedName != null) {
|
||||||
if (!changed) {
|
if (!changed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user