This commit is contained in:
Gurge44 committed 2026-05-19 16:32:19 +02:00
1 parent b44f713dda
commit a32b387614
1 file changed
+6
+6
View File
@@ -216,6 +216,12 @@ public class PlayerState(byte playerId)
if (replaceAll)
{
if (SubRoles.Contains(CustomRoles.Flash) || SubRoles.Contains(CustomRoles.Dynamo) || SubRoles.Contains(CustomRoles.Spurt))
{
Main.AllPlayerSpeed[PlayerId] = Main.RealOptionsData.GetFloat(FloatOptionNames.PlayerSpeedMod);
PlayerGameOptionsSender.SetDirty(PlayerId);
}
SubRoles.Clear();
Utils.SendRPC(CustomRPC.RemoveSubRole, PlayerId, 2);
}