Skip to content

Commit

Permalink
performancebrowser: Fix player names not being reinitialized on chang…
Browse files Browse the repository at this point in the history
…e. (#514)
  • Loading branch information
YelehaUwU committed Jul 19, 2024
1 parent a01ec8a commit 3e0166d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions [web]/performancebrowser/targetManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ addEventHandler('onNotifyTargetEnabled', resourceRoot,
end
)

addEventHandler('onPlayerChangeNick', root,
function(old, new, user)
if targetList[source] then
targetList[source].name = "client: "..new
end
end
)

addEventHandler('onResourceStart', resourceRoot,
function( resource )
Expand Down

0 comments on commit 3e0166d

Please sign in to comment.