From 01332a7ba11f10e59f42ee40203e231c31ad0079 Mon Sep 17 00:00:00 2001 From: tuedel Date: Fri, 31 Jul 2020 22:26:58 +0200 Subject: Replace deprecated getpos() calls (#522) --- mesecons_pressureplates/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_pressureplates') diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index 1a503e9..8137676 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -24,7 +24,7 @@ local function pp_on_timer(pos, elapsed) mesecon.receptor_off(pos, mesecon.rules.pplate) elseif node.name == basename .. "_off" then for k, obj in pairs(objs) do - local objpos = obj:getpos() + local objpos = obj:get_pos() if objpos.y > pos.y-1 and objpos.y < pos.y then minetest.set_node(pos, {name = basename .. "_on"}) mesecon.receptor_on(pos, mesecon.rules.pplate ) -- cgit v1.2.3