diff options
Diffstat (limited to 'technic_chests')
| -rw-r--r-- | technic_chests/chest_commons.lua | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/technic_chests/chest_commons.lua b/technic_chests/chest_commons.lua index 7786496..92827ab 100644 --- a/technic_chests/chest_commons.lua +++ b/technic_chests/chest_commons.lua @@ -11,8 +11,10 @@ tubes_properties = {insert_object=function(pos,node,stack,direction)  					local inv=meta:get_inventory()  					return inv:room_for_item("main",stack)  				end, -				input_inventory="main"} -				 +				input_inventory="main", +				connect_sides = {left=1, right=1, front=1, back=1, top=1, bottom=1}, +} +  chest_can_dig = function(pos,player)  local meta = minetest.env:get_meta(pos);  local inv = meta:get_inventory() @@ -71,8 +73,5 @@ def_on_metadata_inventory_take = function(pos, listname, index, stack, player)  end  function has_locked_chest_privilege(meta, player) -	if player:get_player_name() ~= meta:get_string("owner") then -		return false -	end -	return true +	return player:get_player_name() == meta:get_string("owner")  end  | 
