small fixes

This commit is contained in:
theFox6 2020-03-16 17:09:12 +01:00
parent d1f7d633c8
commit 063c067e39
No known key found for this signature in database
GPG Key ID: C884FE8D3BCE128A
3 changed files with 4 additions and 2 deletions

@ -4,7 +4,9 @@ read_globals = {
"minetest", "default", "minetest", "default",
"dump", "vector", "dump", "vector",
"VoxelManip", "VoxelArea", "VoxelManip", "VoxelArea",
"ItemStack", "PseudoRandom", "ItemStack",
"pipeworks",
"PseudoRandom",
"stairsplus", "intllib", "stairsplus", "intllib",
"Settings", "Settings",
math = { fields = {"sign"} } math = { fields = {"sign"} }

@ -4,6 +4,7 @@ read_globals = {
"default", "default",
"dump", "dump",
"ItemStack", "ItemStack",
"pipeworks",
"PseudoRandom", "PseudoRandom",
"stairsplus", "stairsplus",
"intllib", "intllib",

@ -67,7 +67,6 @@ me.register_node("ctrl", {
meta:set_string("owner", name) meta:set_string("owner", name)
end, end,
on_destruct = function(pos) on_destruct = function(pos)
local net = me.get_network(pos)
local net,idx = me.get_network(pos) local net,idx = me.get_network(pos)
--disconnect all those who need the network --disconnect all those who need the network
me.send_event(pos,"disconnect",{net=net}) me.send_event(pos,"disconnect",{net=net})