mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
b44f713dda
commit
a32b387614
1 file changed
+6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user