Added code comments
This commit is contained in:
parent
64fa5282ac
commit
973d72b79d
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue