forked from mtcontrib/scifi_nodes
fix player check, use builting code.is_player(obj)
This commit is contained in:
parent
e52a890883
commit
cb95483a12
@ -33,7 +33,7 @@ function scifi_nodes.door_check_access_card(node_pos, itemstack, player)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if not player or not player:is_player() then
|
if not minetest.is_player(player) then
|
||||||
-- not a player, restrict access
|
-- not a player, restrict access
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user