From e9310413583cbcaaa7b2d02f64d96a2f1bf7e0ed Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 23 Oct 2018 18:42:52 +0200 Subject: [PATCH 1/2] Fix clear_craft crash due to dependency order via soft-dependency on dye (#449) Fixes Fix #448 --- technic/depends.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/technic/depends.txt b/technic/depends.txt index 5bf9f9f..6b28f9f 100644 --- a/technic/depends.txt +++ b/technic/depends.txt @@ -10,3 +10,4 @@ digiline_remote? intllib? unified_inventory? vector_extras? +dye? From ee2728c26adc9ac8896194922d7eb8cdc7c78b2b Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Fri, 9 Nov 2018 07:56:18 +0100 Subject: [PATCH 2/2] fixes #441 Quarry uses a fake-digger created by pipeworks (hard-dependency) Fixes crash when digging empty protected chests (https://github.com/minetest/minetest_game/blob/backport-0.4/mods/default/nodes.lua#L1868) --- technic/machines/HV/quarry.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua index 86ca395..b67ac48 100644 --- a/technic/machines/HV/quarry.lua +++ b/technic/machines/HV/quarry.lua @@ -146,15 +146,9 @@ local function quarry_run(pos, node) dignode = technic.get_or_load_node(digpos) or minetest.get_node(digpos) local dignodedef = minetest.registered_nodes[dignode.name] or {diggable=false} -- doors mod among other thing does NOT like a nil digger... - local fakedigger = { - get_player_name = function() - return "!technic_quarry_fake_digger" - end, - is_player = function() return false end, - get_wielded_item = function() - return ItemStack("air") - end, - } + local fakedigger = pipeworks.create_fake_player({ + name = owner + }) if not dignodedef.diggable or (dignodedef.can_dig and not dignodedef.can_dig(digpos, fakedigger)) then can_dig = false end