-y bug
Fix a bug that causes televators to act weird at negative y
This commit is contained in:
parent
3db87111f8
commit
c3ba88c380
2
init.lua
2
init.lua
@ -113,7 +113,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not delay[name] or delay[name] > 0.5 then
|
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 where
|
||||||
local controls = player:get_player_control()
|
local controls = player:get_player_control()
|
||||||
if controls.jump then
|
if controls.jump then
|
||||||
|
Loading…
Reference in New Issue
Block a user