Skip to content

Commit

Permalink
fix: update config for user with player object instead of player ID
Browse files Browse the repository at this point in the history
  • Loading branch information
mglst committed Nov 25, 2024
1 parent 397e611 commit a288464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/utils/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def finish_project(construction: OngoingConstruction, skip_notifications=False):
player.capacities.update(player, None)
else:
player.capacities.update(player, construction.name)
engine.config.update_config_for_user(player.id)
engine.config.update_config_for_user(player)
player.emit("retrieve_player_data")

if family == "Functional facilities":
Expand Down

0 comments on commit a288464

Please sign in to comment.