3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-27 08:30:10 +01:00

Use TagUtil#removeNamespaced in 1.19.4->.3 (#735)

Dieser Commit ist enthalten in:
EnZaXD 2024-05-02 16:07:22 +02:00 committet von GitHub
Ursprung 99f6356230
Commit fedda03062
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -63,12 +63,9 @@ public final class EntityPackets1_19_4 extends EntityRewriter<ClientboundPackets
handler(worldDataTrackerHandlerByKey()); handler(worldDataTrackerHandlerByKey());
handler(wrapper -> { handler(wrapper -> {
final CompoundTag registry = wrapper.get(Type.NAMED_COMPOUND_TAG, 0); final CompoundTag registry = wrapper.get(Type.NAMED_COMPOUND_TAG, 0);
registry.remove("minecraft:trim_pattern"); TagUtil.removeNamespaced(registry, "trim_pattern");
registry.remove("minecraft:trim_material"); TagUtil.removeNamespaced(registry, "trim_material");
registry.remove("minecraft:damage_type"); TagUtil.removeNamespaced(registry, "damage_type");
registry.remove("trim_pattern");
registry.remove("trim_material");
registry.remove("damage_type");
final ListTag<CompoundTag> biomes = TagUtil.getRegistryEntries(registry, "worldgen/biome"); final ListTag<CompoundTag> biomes = TagUtil.getRegistryEntries(registry, "worldgen/biome");
for (final CompoundTag biomeTag : biomes) { for (final CompoundTag biomeTag : biomes) {