add 2 second wait on player join for flight checks
This commit is contained in:
parent
54260291cc
commit
4aec77aadf
@ -107,6 +107,9 @@ end
|
||||
-- on join / leave
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
|
||||
-- wait 2 seconds before doing flight checks on player
|
||||
minetest.after(2.0, function(player)
|
||||
|
||||
if not player then return end
|
||||
|
||||
-- get player name and timer
|
||||
@ -135,6 +138,8 @@ minetest.register_on_joinplayer(function(player)
|
||||
ethereal_set_flight(player)
|
||||
end)
|
||||
end
|
||||
|
||||
end, player)
|
||||
end)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user