Core: move race_mode to read_data instead of stored_data (#4020)

* move race_mode to read_data

* add race_mode to docs
This commit is contained in:
Aaron Wagener
2024-10-01 16:55:34 -05:00
committed by GitHub
parent 5a853dfccd
commit f06f95d03d
4 changed files with 6 additions and 5 deletions

View File

@@ -243,8 +243,9 @@ class ServerLabel(HovererableLabel):
f"\nYou currently have {ctx.hint_points} points."
elif ctx.hint_cost == 0:
text += "\n!hint is free to use."
if ctx.stored_data and "race_mode" in ctx.stored_data:
text += "\nRace mode is enabled." if ctx.stored_data["race_mode"] else "\nRace mode is disabled."
if ctx.stored_data and "_read_race_mode" in ctx.stored_data:
text += "\nRace mode is enabled." \
if ctx.stored_data["_read_race_mode"] else "\nRace mode is disabled."
else:
text += f"\nYou are not authenticated yet."