[MIRROR] fix a var name issue, and nosleeve trait prevents being added to sleeve database (#12136)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-12-19 04:44:38 +01:00
committed by GitHub
co-authored by Will
parent 95d92151db
commit 48f5135403
2 changed files with 6 additions and 6 deletions
@@ -99,7 +99,7 @@
if(QDELETED(character) || QDELETED(pref))
return // They might have been deleted during the wait
if(!character.virtual_reality_mob && !(/mob/living/carbon/human/proc/perform_exit_vr in character.verbs)) //Janky fix to prevent resleeving VR avatars but beats refactoring transcore
if(want_body_save)
if(want_body_save && !(character.species.flags & NO_SLEEVE)) // Nosleeve flag overrides character pref editor. Otherwise resleevable species still get one even if they took a trait to not be sleevable.
var/datum/transhuman/body_record/BR = new()
BR.init_from_mob(character, TRUE, pref.resleeve_lock)
if(want_mind_save)