mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-19 15:51:42 +00:00
Always store previous color
Because it's only restored in standard SA networking, the stored value will be ignored in HA. This is preferred to logging when in HA mode
This commit is contained in:
1 parent
104376b43f
commit
c672e19e99
1 file changed
+1
-1
@@ -846,7 +846,7 @@ namespace Impostor.Server.Net.Inner.Objects
|
||||
PlayerInfo.CurrentOutfit.Color = color;
|
||||
|
||||
// Record the color so it can be restored on the next game
|
||||
if (!Game.IsHostAuthoritive && Game.TryGetPlayer(OwnerId, out var clientPlayer))
|
||||
if (Game.TryGetPlayer(OwnerId, out var clientPlayer))
|
||||
{
|
||||
clientPlayer.Client.PreviousColor = color;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user