Collapsible Game Rules 1.0.29+26.2
Curse Maven Snippet
What's new
[1.0.29+26.2]
- Category Reset Engine (
CategoryResetHelper): Implemented headless logic for comparing current game rule values (boolean, integer, and serialized string) against vanilla defaults to accurately detect category modification state. - Zero-Allocation State Evaluation: Designed pure functional comparison checks and count boundary clamping (
clampModifiedCount) to maintain 0B heap allocation on UI tick paths. - Comprehensive Automated Tests: Added complete JUnit 5 test suite in
CategoryResetHelperTestcovering boolean/integer deviations, trimmed strings, null-safe equality, and boundary clamping.
This mod has no additional files
