]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix spawn priority persistence on reconnect and restart (#25246)
authorKrunklehorn <42424291+Krunklehorn@users.noreply.github.com>
Thu, 15 Feb 2024 00:24:35 +0000 (19:24 -0500)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2024 00:24:35 +0000 (01:24 +0100)
Because of course I would forget one line

Content.Server/Database/ServerDbBase.cs

index 5365bfb05b2ef90df8501c8b2e33abbed3e054f2..27ccb6ee0ea70ba28943533ba6c14c01f07547db 100644 (file)
@@ -260,6 +260,7 @@ namespace Content.Server.Database
             profile.SkinColor = appearance.SkinColor.ToHex();
             profile.Clothing = humanoid.Clothing.ToString();
             profile.Backpack = humanoid.Backpack.ToString();
+            profile.SpawnPriority = (int) humanoid.SpawnPriority;
             profile.Markings = markings;
             profile.Slot = slot;
             profile.PreferenceUnavailable = (DbPreferenceUnavailableMode) humanoid.PreferenceUnavailable;