From cda054a9368643e97c514eea43ff43a3e34dc2ab Mon Sep 17 00:00:00 2001
From: ShadowNinja <noreply@gmail.com>
Date: Thu, 03 Oct 2013 06:23:21 +0200
Subject: [PATCH] Remove item_drop

---
 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 @@
 					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 @@
 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

--
Gitblit v1.8.0