forked from mtcontrib/random_messages
Version MFF.
This commit is contained in:
parent
0c1f39c96e
commit
bbbccb401c
0
README.txt
Normal file → Executable file
0
README.txt
Normal file → Executable file
13
init.lua
Normal file → Executable file
13
init.lua
Normal file → Executable file
@ -103,14 +103,11 @@ end
|
||||
random_messages.set_interval()
|
||||
random_messages.read_messages()
|
||||
|
||||
local TIMER = 0
|
||||
minetest.register_globalstep(function(dtime)
|
||||
TIMER = TIMER + dtime;
|
||||
if TIMER > MESSAGE_INTERVAL then
|
||||
random_messages.show_message()
|
||||
TIMER = 0
|
||||
end
|
||||
end)
|
||||
local function step()
|
||||
random_messages.show_message()
|
||||
minetest.after(MESSAGE_INTERVAL, step)
|
||||
end
|
||||
minetest.after(0, step)
|
||||
|
||||
local register_chatcommand_table = {
|
||||
params = "viewmessages | removemessage <number> | addmessage <number>",
|
||||
|
Loading…
Reference in New Issue
Block a user