mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2025-06-30 07:01:05 +02:00
fix player check, use builting code.is_player(obj)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user