From bcb4a972f21a32c54ba28e1aed4ac1f205bb07f4 Mon Sep 17 00:00:00 2001 From: Andrii Nemchenko <62670490+andriyndev@users.noreply.github.com> Date: Sun, 20 Oct 2024 20:42:51 +0300 Subject: [PATCH] Update inventory.lua Co-authored-by: SmallJoker --- inventory.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inventory.lua b/inventory.lua index 8cbd36f..2ffeed0 100644 --- a/inventory.lua +++ b/inventory.lua @@ -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 = + }, + ... +} +]] local batches = {} -- Maximum interval from the previous message to include the current one into batch (in seconds) local interval_to_batch = 0.1