diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_16to1_15_2/packets/WorldPackets.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_16to1_15_2/packets/WorldPackets.java index f8fd35a03..96e8f81cd 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_16to1_15_2/packets/WorldPackets.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_16to1_15_2/packets/WorldPackets.java @@ -141,6 +141,17 @@ public class WorldPackets { 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"); + } + } + } } } }