Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 01:00:15 +01:00
Fix missing zombie_pigman (1.15.2) => zombified_piglin (1.16) translation in mob_spawner entity (#3147)
Dieser Commit ist enthalten in:
Ursprung
955b76f599
Commit
17bd048d10
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren