diff options
author | Jeija <norrepli@gmail.com> | 2016-02-14 20:55:50 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2016-02-14 20:55:50 +0100 |
commit | 809192f353af2faeb779df85104d4d7ed8d8943d (patch) | |
tree | bf01d4afac6b7bd29deb0af92a7f7677ca6021c0 /mesecons_torch/init.lua | |
parent | 6b54f025c16f29bd8049d5664b53d6ff6c30ce55 (diff) |
Use vector helper functions instead of old builtin cmpPos and addPosRule functions
Diffstat (limited to 'mesecons_torch/init.lua')
-rw-r--r-- | mesecons_torch/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_torch/init.lua b/mesecons_torch/init.lua index 5d1ad8f..8b1632b 100644 --- a/mesecons_torch/init.lua +++ b/mesecons_torch/init.lua @@ -91,7 +91,7 @@ minetest.register_abm({ action = function(pos, node) local is_powered = false for _, rule in ipairs(torch_get_input_rules(node)) do - local src = mesecon.addPosRule(pos, rule) + local src = vector.add(pos, rule) if mesecon.is_power_on(src) then is_powered = true end |