diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-05-01 23:01:15 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-05-01 23:01:15 +0200 |
commit | 575bc0c119f9aa61c5e24411ad46701c52e17a63 (patch) | |
tree | bb7ed72f9df910fbf07f8d587669ed2c819e63a0 /helpers.lua | |
parent | 80c492fd23b3ac930d0786bd55c4e7e475fb26ce (diff) | |
download | elevator-575bc0c119f9aa61c5e24411ad46701c52e17a63.tar.gz elevator-575bc0c119f9aa61c5e24411ad46701c52e17a63.tar.bz2 elevator-575bc0c119f9aa61c5e24411ad46701c52e17a63.zip |
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 ccd8ebb..2df4253 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:setpos(front) |