File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
lua/entities/gmod_wire_expression2/core Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -466,12 +466,17 @@ function E2Lib.isFriend(owner, player)
466466 return owner == player
467467end
468468
469- function E2Lib .isOwner (self , entity )
470- if game .SinglePlayer () then return true end
471- local owner = E2Lib .getOwner (self , entity )
472- if not IsValid (owner ) then return false end
473-
474- return E2Lib .isFriend (owner , self .player )
469+ if game .SinglePlayer () then
470+ function E2Lib .isOwner (self , entity )
471+ return true
472+ end
473+ else
474+ function E2Lib .isOwner (self , entity )
475+ local owner = E2Lib .getOwner (self , entity )
476+ if not IsValid (owner ) then return false end
477+
478+ return E2Lib .isFriend (owner , self .player )
479+ end
475480end
476481
477482local isOwner = E2Lib .isOwner
You can’t perform that action at this time.
0 commit comments