Skip to content

Commit

Permalink
Corrected name networking
Browse files Browse the repository at this point in the history
A SharedVar update was erroneously removed in the 0.95.3 update, causing names to not network upon updating
  • Loading branch information
VortixDev committed Feb 25, 2019
1 parent 3f65f54 commit 818d608
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3561,6 +3561,7 @@ function Clockwork.player:SetName(player, name, saveless)
local newName = name;
player:SetCharacterData("Name", newName, true);
player:SetSharedVar("Name", newName);
if (!player.cwFirstSpawn) then
cwPlugin:Call("PlayerNameChanged", player, previousName, newName);
Expand Down

0 comments on commit 818d608

Please sign in to comment.