err its better the xclusive player check, minetest api is shit
This commit is contained in:
parent
49a5d903d4
commit
a8f447a346
2
api.lua
2
api.lua
@ -268,7 +268,7 @@ end
|
|||||||
-- are we a real player ?
|
-- are we a real player ?
|
||||||
local function is_player(player)
|
local function is_player(player)
|
||||||
|
|
||||||
if player and type(player) == "userdata" and minetest.is_player(player) then
|
if player and type(player) == "userdata" then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user