aboutsummaryrefslogtreecommitdiff
path: root/formspecs.lua
diff options
context:
space:
mode:
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