aboutsummaryrefslogtreecommitdiff
path: root/helpers.lua
diff options
context:
space:
mode:
authorBeha <shacknetisp@mail.com>2021-06-14 12:45:33 -0400
committerBeha <shacknetisp@mail.com>2021-06-14 12:45:33 -0400
commitd9df0bf57269a24cd608b63b126d21832f6d476f (patch)
treeb11621546460a9d717db1d190db39cd1babe9be0 /helpers.lua
parenta0f873e26e280b41c2b002e73b23aee606d93b3a (diff)
parent575bc0c119f9aa61c5e24411ad46701c52e17a63 (diff)
downloadelevator-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.lua2
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)