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_pressureplates/init.lua | |
parent | 6b54f025c16f29bd8049d5664b53d6ff6c30ce55 (diff) |
Use vector helper functions instead of old builtin cmpPos and addPosRule functions
Diffstat (limited to 'mesecons_pressureplates/init.lua')
-rw-r--r-- | mesecons_pressureplates/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index b00db9a..1ca7cd8 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -17,7 +17,7 @@ pp_on_timer = function (pos, elapsed) if not basename then return end local objs = minetest.get_objects_inside_radius(pos, 1) - local two_below = mesecon.addPosRule(pos, {x = 0, y = -2, z = 0}) + local two_below = vector.add(pos, vector.new(0, -2, 0)) if objs[1] == nil and node.name == basename .. "_on" then minetest.add_node(pos, {name = basename .. "_off"}) |