Fixes the quirk menu not updating (#94673)

This commit is contained in:
Bloop
2026-01-01 16:50:09 +01:00
committed by GitHub
parent 994b5cbe49
commit 82af527b61
6 changed files with 69 additions and 40 deletions
@@ -27,7 +27,6 @@
if(response != "Yes")
return TRUE
/datum/preference_middleware/quirks/post_set_preference(mob/user, preference, value)
if(preference != "species")
return
@@ -107,11 +106,12 @@
// If the client is sending an invalid give_quirk, that means that
// something went wrong with the client prediction, so we should
// catch it back up to speed.
preferences.update_static_data(user)
preferences.update_static_data(user, always_instant = TRUE)
return TRUE
preferences.all_quirks = new_quirks
preferences.character_preview_view?.update_body()
preferences.update_static_data(user, always_instant = TRUE)
return TRUE
@@ -126,11 +126,12 @@
// If the client is sending an invalid remove_quirk, that means that
// something went wrong with the client prediction, so we should
// catch it back up to speed.
preferences.update_static_data(user)
preferences.update_static_data(user, always_instant = TRUE)
return TRUE
preferences.all_quirks = new_quirks
preferences.character_preview_view?.update_body()
preferences.update_static_data(user, always_instant = TRUE)
return TRUE