mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-17 15:58:37 +01:00
owner check
This commit is contained in:
parent
5ab0b6383a
commit
26474b3f5c
@ -304,7 +304,7 @@ function technic.chests:definition(name, data)
|
||||
def.can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty("main") and default.can_interact_with_node(player, pos)
|
||||
return inv:is_empty("main") and player and player:is_player() and default.can_interact_with_node(player, pos)
|
||||
end
|
||||
def.on_skeleton_key_use = function(pos, player, newsecret)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
Loading…
Reference in New Issue
Block a user