From 205bdc02722ad7c8da5b2ac255b8f822d03b99da Mon Sep 17 00:00:00 2001 From: Logan Gartner Date: Sat, 26 Mar 2022 13:19:17 -0600 Subject: [PATCH] Target finding function now actually returns nil on an invalid input like it should --- sv_lsft.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sv_lsft.txt b/sv_lsft.txt index b0369b9..2461512 100644 --- a/sv_lsft.txt +++ b/sv_lsft.txt @@ -349,7 +349,9 @@ end -- Get's a player's entity by searching for it via an inputted string function core:get_entity(ply) - if type(ply) == "Player" then + if ply == nil then + return nil + elseif type(ply) == "Player" then return ply elseif ply == "^" then return owner()