Disable Click Event Warning
ModLicenseRef-WTFPL

Disable Click Event Warning

Disables the annoying pop-up added in 25w20a when you just want to click a button that runs an operator/invalid command

613
Downloads
3
Followers
3 months ago
Updated
📦
2
Versions

📖About Disable Click Event Warning

This mod's entire purpose is to remove the warning that shows up in 25w20a and newer when you try to click text or a dialog button that has a click event that runs an operator command (or an invalid command or any other command that pops up a warning). It does this by simply changing the click event method to just run the command without checking the command. Also allows /say to be run from a click event, cool little side-effect.

I recommend you install this mod if you use and/or develop a datapack that relies heavily on click events and/or dialogs being able to run operator commands.

For Mod Developers:

If you're wondering why this mod might be causing issues with your mod if it changes click event handling in any way, it's probably because this mod @Overrides the runClickEventCommand method of ClientPlayNetworkHandler.class (yarn mappings)