From fb18d3f14b164134555cae5fbdcc456c4f776f66 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Thu, 29 Jan 2026 14:45:43 +1100 Subject: [PATCH 1/2] check if prospector target is an unknown node --- technic/tools/prospector.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/technic/tools/prospector.lua b/technic/tools/prospector.lua index 5097866f..0aabd38d 100644 --- a/technic/tools/prospector.lua +++ b/technic/tools/prospector.lua @@ -68,7 +68,7 @@ technic.register_power_tool("technic:prospector", { return end local meta = toolstack:get_meta() - local target = meta:get("target") or migrate_meta(meta) + local target = core.registered_nodes[meta:get("target") or migrate_meta(meta)] local look_depth, look_radius = get_field(meta) local pointed if pointed_thing.type == "node" then @@ -85,7 +85,7 @@ technic.register_power_tool("technic:prospector", { "label[1,0;"..core.formspec_escape(toolstack:get_description()).."]".. (target and "label[0,1.5;"..S("Current target:").."]".. - "label[0,2;"..core.formspec_escape(core.registered_nodes[target].description).."]".. + "label[0,2;"..core.formspec_escape(target.description).."]".. "item_image[0,2.5;1,1;"..target.."]" or "label[0,1.5;"..S("No target set").."]").. (pointed and From cee8146134a4181b013252b189006146c80c3ce0 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 1 Feb 2026 13:12:28 +1100 Subject: [PATCH 2/2] use a proper check --- technic/tools/prospector.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/technic/tools/prospector.lua b/technic/tools/prospector.lua index 0aabd38d..02480f3c 100644 --- a/technic/tools/prospector.lua +++ b/technic/tools/prospector.lua @@ -68,7 +68,10 @@ technic.register_power_tool("technic:prospector", { return end local meta = toolstack:get_meta() - local target = core.registered_nodes[meta:get("target") or migrate_meta(meta)] + local target = meta:get("target") or migrate_meta(meta) + if target and not core.registered_nodes[target] then + target = nil + end local look_depth, look_radius = get_field(meta) local pointed if pointed_thing.type == "node" then @@ -85,7 +88,7 @@ technic.register_power_tool("technic:prospector", { "label[1,0;"..core.formspec_escape(toolstack:get_description()).."]".. (target and "label[0,1.5;"..S("Current target:").."]".. - "label[0,2;"..core.formspec_escape(target.description).."]".. + "label[0,2;"..core.formspec_escape(core.registered_nodes[target].description).."]".. "item_image[0,2.5;1,1;"..target.."]" or "label[0,1.5;"..S("No target set").."]").. (pointed and