From 234a9e9c006ae1f9764fe006e489e2e49e0ec899 Mon Sep 17 00:00:00 2001 From: SomeName42 <> Date: Sun, 17 Nov 2024 17:33:26 +0100 Subject: [PATCH] Defined clear_networks before clear_network because it is needed in the function. --- technic/machines/register/cables.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/technic/machines/register/cables.lua b/technic/machines/register/cables.lua index 04c0cc4d..48cf836c 100644 --- a/technic/machines/register/cables.lua +++ b/technic/machines/register/cables.lua @@ -43,6 +43,8 @@ local function check_connections(pos) return connections end +local clear_networks + local function clear_network(net) for _,v in pairs(technic.networks[net].all_nodes) do local pos1 = minetest.hash_node_position(v) @@ -62,7 +64,7 @@ local function clear_network(net) end end -local function clear_networks(pos) +clear_networks = function(pos) local node = minetest.get_node(pos) local meta = minetest.get_meta(pos) local placed = node.name ~= "air"