Skip to content

Commit

Permalink
Fix map change not properly applying
Browse files Browse the repository at this point in the history
  • Loading branch information
wrefgtzweve authored and brandonsturgeon committed Jun 28, 2022
1 parent daf8cfb commit c87eacb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moon/cfc_chat_transit/server/player_count.moon
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c87eacb

Please sign in to comment.