diff options
author | Beha <shacknetisp@mail.com> | 2021-06-14 12:45:33 -0400 |
---|---|---|
committer | Beha <shacknetisp@mail.com> | 2021-06-14 12:45:33 -0400 |
commit | d9df0bf57269a24cd608b63b126d21832f6d476f (patch) | |
tree | b11621546460a9d717db1d190db39cd1babe9be0 /helpers.lua | |
parent | a0f873e26e280b41c2b002e73b23aee606d93b3a (diff) | |
parent | 575bc0c119f9aa61c5e24411ad46701c52e17a63 (diff) | |
download | elevator-d9df0bf57269a24cd608b63b126d21832f6d476f.tar.gz elevator-d9df0bf57269a24cd608b63b126d21832f6d476f.tar.bz2 elevator-d9df0bf57269a24cd608b63b126d21832f6d476f.zip |
Merge branch 'master' of https://github.com/gpcf/elevator into gpcf-master
Diffstat (limited to 'helpers.lua')
-rw-r--r-- | helpers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers.lua b/helpers.lua index 45816f1..5215c1a 100644 --- a/helpers.lua +++ b/helpers.lua @@ -13,7 +13,7 @@ elevator.teleport_player_from_elevator = function(player) if node.name == "elevator:elevator_on" then local front = vector.subtract(pos, minetest.facedir_to_dir(node.param2)) local front_above = vector.add(front, {x=0, y=1, z=0}) - local front_below = vector.subtract(front, {x=0, y=1, z=0}) + -- local front_below = vector.subtract(front, {x=0, y=1, z=0}) -- If the front isn't solid, it's ok to teleport the player. if not solid(front) and not solid(front_above) then player:set_pos(front) |