actually use the set interval
This commit is contained in:
parent
57aeecc76e
commit
49e3497738
|
@ -20,7 +20,7 @@ end
|
||||||
local function tp_step(n)
|
local function tp_step(n)
|
||||||
minetest.registered_chatcommands["findbiome"].func(n,next_biome())
|
minetest.registered_chatcommands["findbiome"].func(n,next_biome())
|
||||||
minetest.chat_send_player(n,"Teleporting to "..minetest.registered_biomes[biomekeys[current]].name.." ("..current.."/"..#biomekeys..")")
|
minetest.chat_send_player(n,"Teleporting to "..minetest.registered_biomes[biomekeys[current]].name.." ("..current.."/"..#biomekeys..")")
|
||||||
if active then minetest.after(5,tp_step,n) end
|
if active then minetest.after(wait,tp_step,n) end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_chatcommand("biometp",{
|
minetest.register_chatcommand("biometp",{
|
||||||
|
|
Loading…
Reference in New Issue