From a8ed9dd5522b5df4da2bd6f2b66df086c738654b Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Wed, 9 Dec 2020 21:36:34 +0100 Subject: [PATCH] Ouput quarry print position when it hits a protected area & fix leaves->biogas recipe (by Fedja Beader ) --- tubelib_addons1/fermenter.lua | 7 ++++++- tubelib_addons1/quarry.lua | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tubelib_addons1/fermenter.lua b/tubelib_addons1/fermenter.lua index 05236f7..27f849b 100644 --- a/tubelib_addons1/fermenter.lua +++ b/tubelib_addons1/fermenter.lua @@ -342,8 +342,13 @@ if minetest.global_exists("unified_inventory") then width = 2, height = 2, }) + + local leaves_table = {} + for i = 1, NUM_LEAVES do + table.insert(leaves_table, "group:leaves") + end unified_inventory.register_craft({ - items = {"group:leaves", "group:leaves"}, + items = leaves_table, output = "tubelib_addons1:biogas", type = "fermenting" }) diff --git a/tubelib_addons1/quarry.lua b/tubelib_addons1/quarry.lua index ea7ac9c..bc64107 100644 --- a/tubelib_addons1/quarry.lua +++ b/tubelib_addons1/quarry.lua @@ -215,7 +215,8 @@ local function quarry_next_node(pos, meta) meta:set_string("quarry_pos", P2S(quarry_pos)) if minetest.is_protected(quarry_pos, owner) then - minetest.chat_send_player(owner, S("[Tubelib Quarry] Area is protected!")) + minetest.chat_send_player(owner, S("[Tubelib Quarry] Area is protected!") .. + " " .. minetest.pos_to_string(quarry_pos) ) State:fault(pos, meta) return end