summaryrefslogtreecommitdiff
path: root/mesecons_torch
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2016-02-14 20:55:50 +0100
committerJeija <norrepli@gmail.com>2016-02-14 20:55:50 +0100
commit809192f353af2faeb779df85104d4d7ed8d8943d (patch)
treebf01d4afac6b7bd29deb0af92a7f7677ca6021c0 /mesecons_torch
parent6b54f025c16f29bd8049d5664b53d6ff6c30ce55 (diff)
downloadmesecons-809192f353af2faeb779df85104d4d7ed8d8943d.tar
mesecons-809192f353af2faeb779df85104d4d7ed8d8943d.tar.gz
mesecons-809192f353af2faeb779df85104d4d7ed8d8943d.tar.bz2
mesecons-809192f353af2faeb779df85104d4d7ed8d8943d.tar.xz
mesecons-809192f353af2faeb779df85104d4d7ed8d8943d.zip
Use vector helper functions instead of old builtin cmpPos and addPosRule functions
Diffstat (limited to 'mesecons_torch')
-rw-r--r--mesecons_torch/init.lua2
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