diff options
author | tuedel <tuedel+github@tdl.gr> | 2021-06-14 18:43:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 12:43:42 -0400 |
commit | 33951e4a4789a9fcae466bdb97354c678ff9031c (patch) | |
tree | c66d26977d13871dc430c8281556a4beffd4afd8 /components.lua | |
parent | babd508a3575a268f34258032324d7ae33b0384c (diff) | |
download | elevator-33951e4a4789a9fcae466bdb97354c678ff9031c.tar.gz elevator-33951e4a4789a9fcae466bdb97354c678ff9031c.tar.bz2 elevator-33951e4a4789a9fcae466bdb97354c678ff9031c.zip |
Replace deprecated function calls (#16)
Diffstat (limited to 'components.lua')
-rw-r--r-- | components.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components.lua b/components.lua index b0d997b..47642a2 100644 --- a/components.lua +++ b/components.lua @@ -288,7 +288,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 |