mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
[random_messages] Don't use globalsteps
This commit is contained in:
parent
21671bb30f
commit
810ff22629
@ -52,12 +52,9 @@ end
|
|||||||
random_messages.set_interval()
|
random_messages.set_interval()
|
||||||
random_messages.read_messages()
|
random_messages.read_messages()
|
||||||
|
|
||||||
local TIMER = 0
|
local function tick()
|
||||||
minetest.register_globalstep(function(dtime)
|
random_messages.show_message()
|
||||||
TIMER = TIMER + dtime;
|
minetest.after(MESSAGE_INTERVAL, tick)
|
||||||
if TIMER > MESSAGE_INTERVAL then
|
end
|
||||||
random_messages.show_message()
|
minetest.after(MESSAGE_INTERVAL, tick)
|
||||||
TIMER = 0
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user