aboutsummaryrefslogtreecommitdiff
path: root/formspecs.lua
diff options
context:
space:
mode:
authortuedel <tuedel+github@tdl.gr>2021-06-14 18:43:42 +0200
committerGitHub <noreply@github.com>2021-06-14 12:43:42 -0400
commit33951e4a4789a9fcae466bdb97354c678ff9031c (patch)
treec66d26977d13871dc430c8281556a4beffd4afd8 /formspecs.lua
parentbabd508a3575a268f34258032324d7ae33b0384c (diff)
downloadelevator-33951e4a4789a9fcae466bdb97354c678ff9031c.tar.gz
elevator-33951e4a4789a9fcae466bdb97354c678ff9031c.tar.bz2
elevator-33951e4a4789a9fcae466bdb97354c678ff9031c.zip
Replace deprecated function calls (#16)
Diffstat (limited to 'formspecs.lua')
-rw-r--r--formspecs.lua2
1 files changed, 1 insertions, 1 deletions
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