Added code comments

This commit is contained in:
the-real-herowl 2024-06-02 01:44:44 +02:00
parent 64fa5282ac
commit 973d72b79d
1 changed files with 3 additions and 0 deletions

View File

@ -137,6 +137,9 @@ minetest.register_on_mods_loaded(function()
end end
end end
-- Itemstack descriptions need to be reloaded separately, because tt invalidates minetest.registered_items iterators, somehow
-- (and pairs() uses said iterators internally)
-- TODO investigate the iterator invalidation, where does it happen?
for name, list in pairs(inventory_lists) do for name, list in pairs(inventory_lists) do
for i=1, #list do for i=1, #list do
local stack = ItemStack(list[i]) local stack = ItemStack(list[i])