You'll notice
Fixed a bug that likely prevented apply_flag_settings events from ever firing
What
The engine's event loop now checks the type of the actual event being processed when handling apply_flag_settings, instead of checking an unrelated variable. This fixes a bug where the branch that applies flag settings likely never triggered.
Why
This ensures flag settings sent via apply_flag_settings events are actually applied instead of silently being skipped.