diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-03-10 19:44:56 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-03-10 19:44:56 -0400 |
commit | 18fc18b5aece7aae1caafd38a2c742af7974348c (patch) | |
tree | 460b6c6ab31c621cd437d04aa7443e5bb343d718 /digilines/internal.lua | |
parent | b21c3d368077aa3a1c42ff1582cda6263c018585 (diff) | |
download | dreambuilder_modpack-18fc18b5aece7aae1caafd38a2c742af7974348c.tar dreambuilder_modpack-18fc18b5aece7aae1caafd38a2c742af7974348c.tar.gz dreambuilder_modpack-18fc18b5aece7aae1caafd38a2c742af7974348c.tar.bz2 dreambuilder_modpack-18fc18b5aece7aae1caafd38a2c742af7974348c.tar.xz dreambuilder_modpack-18fc18b5aece7aae1caafd38a2c742af7974348c.zip |
update cottages, digilines, locks, maptools, moreblocks, technic,
and travelnet
Diffstat (limited to 'digilines/internal.lua')
-rw-r--r-- | digilines/internal.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/digilines/internal.lua b/digilines/internal.lua index 2528f35..05c93fa 100644 --- a/digilines/internal.lua +++ b/digilines/internal.lua @@ -1,6 +1,7 @@ function digilines.getspec(node) - if not minetest.registered_nodes[node.name] then return false end - return minetest.registered_nodes[node.name].digiline + local def = minetest.registered_nodes[node.name] + if not def then return false end + return def.digilines or def.digiline end function digilines.importrules(spec, node) @@ -86,6 +87,12 @@ local function queue_dequeue(queue) end function digilines.transmit(pos, channel, msg, checked) + local checkedID = minetest.hash_node_position(pos) + if checked[checkedID] then + return + end + checked[checkedID] = true + digilines.vm_begin() local queue = queue_new() queue_enqueue(queue, pos) |