summaryrefslogtreecommitdiff
path: root/script/core/command/setConfig.lua
blob: af978ebe933c5c7eaba9f0ca16b709057145d342 (plain)
1
2
3
4
5
6
7
8
9
10
11
local client = require 'client'
local await  = require 'await'

---@async
---@param changes config.change[]
return function (changes)
    while not client:isReady() do
        await.sleep(0.1)
    end
    client.setConfig(changes)
end