Fix map change not properly applying

This commit is contained in:
Redox 2022-06-28 00:28:19 +02:00 committed by Brandon Sturgeon
parent daf8cfb5cc
commit c87eacb920

View File

@ -3,8 +3,8 @@ ChatTransit.playerCount = 0
increment = -> ChatTransit.playerCount += 1
decrement = -> ChatTransit.playerCount -= 1
hook.Add "ClientSignOnStateChanged", "ChatTransit_PlayerCount", (_, _, newstate) ->
return unless newstate == 7
hook.Add "ClientSignOnStateChanged", "ChatTransit_PlayerCount", (_, oldstate) ->
return unless oldstate == 7
increment!
gameevent.Listen "player_connect"