From 2be3b91f388f2379210f4e0d4c812b189d771556 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 19 May 2024 01:15:45 +1000 Subject: [PATCH] better player check --- player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.lua b/player.lua index 71dfe15..643e7da 100644 --- a/player.lua +++ b/player.lua @@ -12,7 +12,7 @@ local player_controls = { ---------------------------------------- function fakelib.is_player(x) - if type(x) == "userdata" and x.get_player_name then + if type(x) == "userdata" and x.is_player and x:is_player() then return true elseif type(x) == "table" and getmetatable(x) == identifier then return true