mirror of
https://github.com/OgelGames/fakelib.git
synced 2025-01-04 23:30:35 +01:00
better player check
This commit is contained in:
parent
47586bf380
commit
2be3b91f38
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user