Skip to content

Commit b4b480c

Browse files
committed
nil string check
1 parent 77a7afd commit b4b480c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/pac3/core/client/parts/event.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3497,7 +3497,7 @@ function PART:GetNiceName()
34973497

34983498
if not PART.Events[event_name] then return "unknown event" end
34993499

3500-
return self:GetTargetingModePrefix() .. PART.Events[event_name]:GetNiceName(self, get_owner(self))
3500+
return self:GetTargetingModePrefix() .. (PART.Events[event_name]:GetNiceName(self, get_owner(self)) or "")
35013501
end
35023502

35033503
local function is_hidden_by_something_else(part, ignored_part)

0 commit comments

Comments
 (0)