Skip to content

Commit

Permalink
Fixed unknown .displayName after startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Sep 27, 2022
1 parent 2432bc6 commit bc481be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions functions/classes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ do
end

function Details:SetDisplayName(actor, newDisplayName)
local thisActor = self.displayName and self or actor
thisActor.displayName = newDisplayName
if (not newDisplayName) then
newDisplayName = actor
self.displayName = newDisplayName
else
actor.displayName = newDisplayName
end
end

function _detalhes:GetOnlyName (string)
Expand Down

0 comments on commit bc481be

Please sign in to comment.