Add files via upload

This commit is contained in:
loosewheel
2021-11-12 14:40:43 +10:00
committed by GitHub
parent b3d0f4ebce
commit 32df0b8420
12 changed files with 169 additions and 16 deletions

View File

@@ -113,6 +113,22 @@ end
-- check for hopper
if minetest.global_exists ("hopper") then
utils.hopper_supported = true
utils.hopper_add_container = function (list)
hopper:add_container (list)
end
else
utils.hopper_supported = false
utils.hopper_add_container = function (list)
end
end
function utils.can_interact_with_node (pos, player)
if not player or not player:is_player () then
return false