From 64fb90f3e567c183da65471caadd9c57d506e443 Mon Sep 17 00:00:00 2001 From: Roger Date: Tue, 28 Apr 2020 04:08:31 +0100 Subject: [PATCH 1/4] Change digilines detector tube to send an item table instead of an item string --- signal_tubes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signal_tubes.lua b/signal_tubes.lua index 4b148d3..b59586e 100644 --- a/signal_tubes.lua +++ b/signal_tubes.lua @@ -80,7 +80,7 @@ if digiline_enabled and pipeworks.enable_digiline_detector_tube then local setchan = meta:get_string("channel") - digiline:receptor_send(pos, digiline.rules.default, setchan, stack:to_string()) + digiline:receptor_send(pos, digiline.rules.default, setchan, stack:to_table()) return pipeworks.notvel(pipeworks.meseadjlist, velocity) end}, From 5410ea74f28de489f7cea15dc5c6dadf16f4d2f3 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 2 May 2020 11:37:57 +0200 Subject: [PATCH 2/4] Fix wrong inventory_image and wield_image types --- tube_registration.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tube_registration.lua b/tube_registration.lua index 17965d8..c530cbf 100644 --- a/tube_registration.lua +++ b/tube_registration.lua @@ -58,7 +58,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e local tgroups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory = 1} local tubedesc = string.format("%s %s", desc, dump(connects)) - local iimg = plain[1] + local iimg = type(plain[1]) == "table" and plain[1].name or plain[1] local wscale = {x = 1, y = 1, z = 1} if #connects == 0 then From ed282b02989f19c776c807ea09a572f4844547ed Mon Sep 17 00:00:00 2001 From: upsilon Date: Tue, 26 May 2020 22:29:16 +0200 Subject: [PATCH 3/4] Prevent node breaker from digging all nodes A small mistake in the code allowed the node breaker to dig any node using any tool, including hand. --- wielder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wielder.lua b/wielder.lua index 13f4398..a0fb472 100644 --- a/wielder.lua +++ b/wielder.lua @@ -40,7 +40,7 @@ local can_tool_dig_node = function(nodename, toolcaps, toolname) -- but a player holding one can - the game seems to fall back to the hand. -- fall back to checking the hand's properties if the tool isn't the correct one. local hand_caps = minetest.registered_items[""].tool_capabilities - diggable = minetest.get_dig_params(nodegroups, hand_caps) + diggable = minetest.get_dig_params(nodegroups, hand_caps).diggable end return diggable end From 9eefe9c7bb1a5f57fc99201429669823b2508d79 Mon Sep 17 00:00:00 2001 From: VanessaE Date: Wed, 3 Jun 2020 13:00:28 -0400 Subject: [PATCH 4/4] add minimum minetest version key for contentdb --- mod.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/mod.conf b/mod.conf index 3504b44..fd7f74d 100644 --- a/mod.conf +++ b/mod.conf @@ -2,3 +2,4 @@ name = pipeworks description = This mod uses mesh nodes and nodeboxes to supply a complete set of 3D pipes and tubes, along with devices that work with them. depends = default, basic_materials, screwdriver optional_depends = mesecons, mesecons_mvps, digilines, signs_lib +min_minetest_version = 5.2.0