aboutsummaryrefslogtreecommitdiff
path: root/components.lua
diff options
context:
space:
mode:
Diffstat (limited to 'components.lua')
-rw-r--r--components.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/components.lua b/components.lua
index 0008389..8f72848 100644
--- a/components.lua
+++ b/components.lua
@@ -304,7 +304,7 @@ for _,mode in ipairs({"on", "off"}) do
elevator.formspecs[sender:get_player_name()] = {pos}
local motorhash = meta:get_string("motor")
if on and elevator.motors[motorhash] then
- if vector.distance(sender:getpos(), pos) > 1 or minetest.get_node(sender:getpos()).name ~= nodename then
+ if vector.distance(sender:get_pos(), pos) > 1 or minetest.get_node(sender:get_pos()).name ~= nodename then
minetest.chat_send_player(sender:get_player_name(), "You are not inside the booth.")
return
end