From c42375981763141c3b4a5f44d8e5923cb0ee8ed8 Mon Sep 17 00:00:00 2001 From: GhoulofGSG9 Date: Sun, 5 Oct 2014 16:27:05 +0200 Subject: [PATCH] Fixed that ppl were unable to leave the Spectator mode --- lua/shine/extensions/captains/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/shine/extensions/captains/server.lua b/lua/shine/extensions/captains/server.lua index 7975846..5246044 100644 --- a/lua/shine/extensions/captains/server.lua +++ b/lua/shine/extensions/captains/server.lua @@ -245,7 +245,7 @@ end function Plugin:JoinTeam( Gamerules, Player, NewTeam, Force, ShineForce ) if ShineForce or self.dt.State ~= 1 and self.Config.AllowSpectating and NewTeam == kSpectatorIndex or - self.Config.AllowPregameJoin and self.dt.State == 0 then return end + self.Config.AllowPregameJoin and self.dt.State == 0 or Player:GetTeamNumber() == kSpectatorIndex and NewTeam == kTeamReadyRoom then return end return false end