Move ScreenInit events to Mixin so they fire reliably even on Neo/Forge #127
Labels
Breaking Change
This issue requires a breaking change to the API or ingame behavior
Feature
New features or improvements to existing features
On some screens (like OptionsScreen or others that override
repositionWidgets
) Neo/Forge only fire screen init events the first time the screen is opened, and not on resizes. This makes the event near unusable on those screens, since it's impossible to reliably reposition custom buttons on resizes.Fabric always fires screen init events.
Currently, Balm mixins into OptionsScreen to manually fire init events, but that doesn't cover other (vanilla/modded) screens using layouts or similar.
The text was updated successfully, but these errors were encountered: