From 8a8db016e07f8b456f6b65049287317c75aed697 Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Sat, 27 Apr 2013 16:05:04 +0600 Subject: [PATCH] Joiner table doesn't destroy items when player destroys joiner table --- mods/joiner_table/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/joiner_table/init.lua b/mods/joiner_table/init.lua index d208c9c..b6ec9a0 100644 --- a/mods/joiner_table/init.lua +++ b/mods/joiner_table/init.lua @@ -42,6 +42,11 @@ for _, tree in pairs(realtest.registered_trees) do sounds = default.node_sound_wood_defaults(), paramtype = "light", paramtype2 = "facedir", + can_dig = function(pos,player) + local meta = minetest.env:get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("src1") and inv:is_empty("src2") and inv:is_empty("instruments") and inv:is_empty("output") + end, on_construct = function(pos) local meta = minetest.env:get_meta(pos) meta:set_string("formspec", "size[8,8]"..