fix player check, use builting code.is_player(obj)

This commit is contained in:
BuckarooBanzay 2025-02-21 13:09:24 +01:00
parent e52a890883
commit cb95483a12

View File

@ -33,7 +33,7 @@ function scifi_nodes.door_check_access_card(node_pos, itemstack, player)
return true
end
if not player or not player:is_player() then
if not minetest.is_player(player) then
-- not a player, restrict access
return false
end