From 33951e4a4789a9fcae466bdb97354c678ff9031c Mon Sep 17 00:00:00 2001 From: tuedel Date: Mon, 14 Jun 2021 18:43:42 +0200 Subject: Replace deprecated function calls (#16) --- formspecs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'formspecs.lua') diff --git a/formspecs.lua b/formspecs.lua index 64bd020..ecb6ebe 100644 --- a/formspecs.lua +++ b/formspecs.lua @@ -22,7 +22,7 @@ minetest.register_on_player_receive_fields(function(sender, formname, fields) return true end -- Double check if it's ok to go. - if vector.distance(sender:getpos(), pos) > 1 then + if vector.distance(sender:get_pos(), pos) > 1 then return true end if fields.target then -- cgit v1.2.3