mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-07 21:47:30 +01:00
Look, I'm learning!
This commit is contained in:
parent
acf9658732
commit
a3d18f5a70
2
init.lua
2
init.lua
@ -262,7 +262,7 @@ local function tpe(player)
|
|||||||
local options = { 'x', 'y', 'z' }
|
local options = { 'x', 'y', 'z' }
|
||||||
local axis = options[math.random(3)]
|
local axis = options[math.random(3)]
|
||||||
for i = 1,times do
|
for i = 1,times do
|
||||||
minetest.after(1, function() tpj(axis,distance) ) -- do this every 1 second
|
minetest.after(1, function() tpj(axis,distance) end) -- do this every 1 second
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user