diff options
author | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-03-01 00:57:58 -0300 |
---|---|---|
committer | Auke Kok <sofar+github@foo-projects.org> | 2017-03-14 21:57:01 -0700 |
commit | 6a2fa5a3e49ce3612e857b39a0c12ea8420e6795 (patch) | |
tree | c04c946337ed51277802836af2e3fa80868bc483 /init.lua | |
parent | 54b1b3fe91f2e7e774f305d4b57bb4367aca1cd6 (diff) |
Rename global table to `digilines`.
This also adds a backwards compat alias so other mods
shouldn't break.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,4 +1,8 @@ -digiline = {} + +digilines = {} + +-- Backwards compat. +rawset(_G, "digiline", digilines) local modpath = minetest.get_modpath("digilines") dofile(modpath .. "/presetrules.lua") @@ -7,12 +11,12 @@ dofile(modpath .. "/internal.lua") dofile(modpath .. "/wires_common.lua") dofile(modpath .. "/wire_std.lua") -function digiline:receptor_send(pos, rules, channel, msg) +function digilines:receptor_send(pos, rules, channel, msg) local checked = {} checked[minetest.hash_node_position(pos)] = true -- exclude itself for _,rule in ipairs(rules) do - if digiline:rules_link(pos, digiline:addPosRule(pos, rule)) then - digiline:transmit(digiline:addPosRule(pos, rule), channel, msg, checked) + if digilines:rules_link(pos, digilines:addPosRule(pos, rule)) then + digilines:transmit(digilines:addPosRule(pos, rule), channel, msg, checked) end end end |