Skip to content

Commit 3e0166d

Browse files
authored
performancebrowser: Fix player names not being reinitialized on change. (#514)
1 parent a01ec8a commit 3e0166d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

[web]/performancebrowser/targetManager.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ addEventHandler('onNotifyTargetEnabled', resourceRoot,
2626
end
2727
)
2828

29+
addEventHandler('onPlayerChangeNick', root,
30+
function(old, new, user)
31+
if targetList[source] then
32+
targetList[source].name = "client: "..new
33+
end
34+
end
35+
)
2936

3037
addEventHandler('onResourceStart', resourceRoot,
3138
function( resource )

0 commit comments

Comments
 (0)