From 809192f353af2faeb779df85104d4d7ed8d8943d Mon Sep 17 00:00:00 2001 From: Jeija Date: Sun, 14 Feb 2016 20:55:50 +0100 Subject: Use vector helper functions instead of old builtin cmpPos and addPosRule functions --- mesecons_torch/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_torch') 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 -- cgit v1.2.3