diff options
author | Beha <shacknetisp@mail.com> | 2021-06-14 12:43:47 -0400 |
---|---|---|
committer | Beha <shacknetisp@mail.com> | 2021-06-14 12:43:47 -0400 |
commit | a0f873e26e280b41c2b002e73b23aee606d93b3a (patch) | |
tree | 1b174b1c50c0648e1ee33c9af9d3f0d26c132bf8 /components.lua | |
parent | 0f16d29c762c50413ab6c1a532d23580ebb9e85c (diff) | |
parent | 33951e4a4789a9fcae466bdb97354c678ff9031c (diff) | |
download | elevator-a0f873e26e280b41c2b002e73b23aee606d93b3a.tar.gz elevator-a0f873e26e280b41c2b002e73b23aee606d93b3a.tar.bz2 elevator-a0f873e26e280b41c2b002e73b23aee606d93b3a.zip |
Merge branch 'master' of github.com:shacknetisp/elevator
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 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 |