Skip to content

Commit

Permalink
fix(tagsloader): prevent server crash
Browse files Browse the repository at this point in the history
  • Loading branch information
m3ntorsky committed Sep 19, 2024
1 parent 23f75af commit e84b0e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/tags/modules/tagsloader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function SetupTag(playerid)
else
player:CCSPlayerController().Clan = ""
end
RefreshScoreboard()
RefreshScoreboard(playerid)
end

function DetermineTag(playerid)
Expand Down
4 changes: 2 additions & 2 deletions plugins/tags/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function PrepareColor(stringColor)
return "{" .. stringColor .. "}"
end

function RefreshScoreboard()
function RefreshScoreboard(playerid)
local event = Event("OnNextlevelChanged")
event:FireEvent(false)
event:FireEventToClient(playerid)
end

0 comments on commit e84b0e3

Please sign in to comment.