mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 11:35:18 +01:00
Fix missing zombie_pigman (1.15.2) => zombified_piglin (1.16) translation in mob_spawner entity (#3147)
This commit is contained in:
parent
955b76f599
commit
17bd048d10
@ -141,6 +141,17 @@ public class WorldPackets {
|
|||||||
compoundTag.put("Text" + i, new StringTag(text.toString()));
|
compoundTag.put("Text" + i, new StringTag(text.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (id.equals("minecraft:mob_spawner")) {
|
||||||
|
Tag spawnDataTag = compoundTag.get("SpawnData");
|
||||||
|
if (spawnDataTag instanceof CompoundTag) {
|
||||||
|
Tag spawnDataIdTag = ((CompoundTag) spawnDataTag).get("id");
|
||||||
|
if (spawnDataIdTag instanceof StringTag) {
|
||||||
|
StringTag spawnDataIdStringTag = ((StringTag) spawnDataIdTag);
|
||||||
|
if (spawnDataIdStringTag.getValue().equals("minecraft:zombie_pigman")) {
|
||||||
|
spawnDataIdStringTag.setValue("minecraft:zombified_piglin");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user