Skip to content

Fix getSound(), message_sound resolution on 1.21+#154

Open
tomtehtom wants to merge 1 commit intoAust1n46:masterfrom
tomtehtom:patch-1
Open

Fix getSound(), message_sound resolution on 1.21+#154
tomtehtom wants to merge 1 commit intoAust1n46:masterfrom
tomtehtom:patch-1

Conversation

@tomtehtom
Copy link
Copy Markdown

Fixed message_sound config with resolving namespaced sounds via Registry.SOUNDS with legacy enum fallback.

Previously only attempted enum resolution, causing all valid new namespaced sounds to be rejected as invalid on 1.21+, both legacy wouldn't exist on this version and new ones wouldn't parse.

Fallback was always being applied for every input other than "None"

…aced sounds via Registry.SOUNDS with legacy enum fallback.

Previously only attempted enum resolution, causing all valid namespaced sounds to be rejected as invalid on 1.21+, both legacy wouldn't exist and new ones wouldn't parse. Fallback was always being applied for every input other than "None"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant