Skip to content

Commit 8d1d3e7

Browse files
authored
Merge pull request #1416 from textstack/develop
viewer_steamid improvements
2 parents b36f32b + 7461c93 commit 8d1d3e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2898,8 +2898,9 @@ PART.OldEvents = {
28982898
tutorial = "activates when the local player has the steamID specified",
28992899
arguments = {{find = "string"}, {include_owner = "boolean"}},
29002900
callback = function(self, ent, find, include_owner)
2901-
if include_owner then
2902-
find = find .. ";" .. self:GetOwner():SteamID()
2901+
local owner = self:GetPlayerOwner()
2902+
if include_owner and owner:IsValid() then
2903+
find = find .. ";" .. owner:SteamID()
29032904
end
29042905

29052906
return self:StringOperator(pac.LocalPlayer:SteamID(), find)

0 commit comments

Comments
 (0)