-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Doubles not being editable in the game-rule menu #3397
Conversation
|
By the way, I noticed DoubleRule is the only one that implements |
It can't due to remapping (the method would not be available in production). |
* Fix double gamerules rules not being editable in menu * Updated `validate`'s javadoc (cherry picked from commit a44e16a)
* Fix double gamerules rules not being editable in menu * Updated `validate`'s javadoc (cherry picked from commit a44e16a)
Hi,
Currently, game-rules of type Double are impossible to edit using the "Edit Gamerules" screen on world creation; any change to those rules is discarded upon exiting the screen.
This is due to
DoubleRule.validate
not updating the rule's value when called by theDoubleRuleWidget
. For other gamerule types, this is how their widget update their value.I have tested the fix in this PR on 1.20.2 using the artifacts generated on my fork. However the issue dates from furher back; at least since 1.19.4 where I first identified the issue. If this is accepted, I'd be interested in a backport of this fix to that version.