fix: remove 1.21.11-specific registry types unknown to older clients#1225
fix: remove 1.21.11-specific registry types unknown to older clients#1225dsudomoin wants to merge 1 commit intoViaVersion:masterfrom
Conversation
ViaBackwards already removes `zombie_nautilus_variant` and `timeline`, but misses several other registry types added in 1.21.11 that cause "Missing registry" errors on 1.20.5–1.21.10 clients: - wolf_sound_variant - chicken_variant - cow_variant - pig_variant - jukebox_song - dialog Fixes ViaVersion#1224
4d22373 to
caaf775
Compare
|
Closing — this is a Minestom-specific issue. Paper 1.21.11 does not send these registry types to the client, so ViaBackwards handles it correctly. Minestom sends additional dynamic registries that don't exist in vanilla, which we handle with a local patch. Sorry for the noise! |
|
There is actually a fix for this in the private 5.8.0 branch since it was needed for 26.1 Vanilla, so it'll get fixed eitherway (though slightly differently/more automatically) |
|
Thanks for the info! Is there any way we could see the 5.8.0 fix for this? We're running an in-process ViaVersion proxy with Minestom and currently maintain a local patch. Would love to align with the upstream approach so we can drop our workaround cleanly when 5.8.0 lands. |
|
Actually, tags weren't yet (but are now, so thanks for the report anyway) - here's the relevant patches https://pastes.dev/8iaXurMYEQ |
|
Thanks a lot for sharing the patches! Very clean approach — auto-removing tags and command arguments from the registryDataRewriter's toRemove set is exactly the right way to do it. For context: our issue is Minestom-specific. Minestom sends dynamic registries (like We'll keep our workaround for 5.7.2 and simplify when 5.8.0 lands. Thanks again! |
|
Actually, correction on our earlier analysis — this isn't purely Minestom-specific. Looking closer, ViaBackwards 5.7.2 removes the registry DATA for Your 5.8.0 auto-tag-removal patch fixes this perfectly. Our local workaround adds both |
Summary
Protocol1_21_11To1_21_9, causingMissing registryerrors on 1.20.5–1.21.10 clients:wolf_sound_variant,chicken_variant,cow_variant,pig_variant,jukebox_song,dialogtagRewriter.removeTags()Test plan
Missing registryerrors on clientFixes #1224
🤖 Generated with Claude Code