Update inventory.lua

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
Andrii Nemchenko 2024-10-20 20:42:51 +03:00 committed by GitHub
parent 2ef5fe831d
commit bcb4a972f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,16 @@ local S = digilines.S
local pipeworks_enabled = minetest.get_modpath("pipeworks") ~= nil
-- Messages which will be sent in a single batch
--[[
Table format:
{
[node pos hash] = {
messages = { msg1, msg2, ... }
timer = <job table from core.after()>
},
...
}
]]
local batches = {}
-- Maximum interval from the previous message to include the current one into batch (in seconds)
local interval_to_batch = 0.1