Fix a bug that causes televators to act weird at negative y
This commit is contained in:
NoctisLabs 2019-09-30 20:38:54 -07:00 committed by GitHub
parent 3db87111f8
commit c3ba88c380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -113,7 +113,7 @@ minetest.register_globalstep(function(dtime)
end
if not delay[name] or delay[name] > 0.5 then
if minetest.get_node({x = pos.x, y = pos.y - 1, z = pos.z}).name == "an_televator:televator" then
if minetest.get_node({x = pos.x, y = pos.y - 0.5, z = pos.z}).name == "an_televator:televator" then
local where
local controls = player:get_player_control()
if controls.jump then