mirror of
https://github.com/NoctisLabs/an_televator.git
synced 2024-11-22 05:03:44 +01:00
-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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user