From 063c067e39ee3e868dd4b65156669a29e7f4d9e5 Mon Sep 17 00:00:00 2001 From: theFox6 Date: Mon, 16 Mar 2020 17:09:12 +0100 Subject: [PATCH] small fixes --- .luacheck_tidy | 4 +++- .luacheckrc | 1 + modules/network/ctrl.lua | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.luacheck_tidy b/.luacheck_tidy index 7812b4c..684bab3 100644 --- a/.luacheck_tidy +++ b/.luacheck_tidy @@ -4,7 +4,9 @@ read_globals = { "minetest", "default", "dump", "vector", "VoxelManip", "VoxelArea", - "ItemStack", "PseudoRandom", + "ItemStack", + "pipeworks", + "PseudoRandom", "stairsplus", "intllib", "Settings", math = { fields = {"sign"} } diff --git a/.luacheckrc b/.luacheckrc index de08e04..2ba39e4 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -4,6 +4,7 @@ read_globals = { "default", "dump", "ItemStack", + "pipeworks", "PseudoRandom", "stairsplus", "intllib", diff --git a/modules/network/ctrl.lua b/modules/network/ctrl.lua index 667b6f7..0e644e9 100644 --- a/modules/network/ctrl.lua +++ b/modules/network/ctrl.lua @@ -67,7 +67,6 @@ me.register_node("ctrl", { meta:set_string("owner", name) end, on_destruct = function(pos) - local net = me.get_network(pos) local net,idx = me.get_network(pos) --disconnect all those who need the network me.send_event(pos,"disconnect",{net=net})