Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Fix global sound event gamerule not being respected

Open Machine-Maker opened this issue 2 years ago • 5 comments

Changes handling of the global sounds. Previously the global sound gamerule wasn't used correctly resulting in unexpected behavior (fixes https://github.com/PaperMC/Paper/issues/8726). This changes the spigot.yml behavior of setting the sound radius for the 3 events to 0. Now, if set to 0, the default radius is used (64). The behavior is now controlled by the gamerule, only using the configuration for the actual radius, not whether to enable it or not.


Download the paperclip jar for this pull request: paper-8727.zip

Machine-Maker avatar Dec 26 '22 00:12 Machine-Maker

I feel like this should go into 0101 and be called "Fix Spigot's global sound handling" now (mfw didn't even see Noah's comment)

kennytv avatar Dec 26 '22 12:12 kennytv

Addressed requested changes

Machine-Maker avatar Dec 26 '22 17:12 Machine-Maker

Should the config really just be ignored if the gamerule isn't set to false? Imo having a config value > 0 definitely means you want this to be used and the sounds to not be global

kennytv avatar Jan 10 '23 12:01 kennytv

Should the config really just be ignored if the gamerule isn't set to false? Imo having a config value > 0 definitely means you want this to be used and the sounds to not be global

maybe we add a migration then which enables initially sets the gamerule if the config is above 0. But we should defer to the “vanilla setting” first. Then look at the spigot config.

Machine-Maker avatar Jan 10 '23 16:01 Machine-Maker

What is the current way forward? Ideally we should prefer vanilla behavior?

Netherwhal avatar Feb 20 '23 22:02 Netherwhal

Rebased for 1.20.1

Machine-Maker avatar Jul 28 '23 22:07 Machine-Maker