mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-03-31 17:50:41 +02:00
parent
e447b010ce
commit
21d9cc4203
@ -66,8 +66,13 @@ minetest.register_globalstep(function(dtime)
|
|||||||
pyramids.timer = pyramids.timer + dtime
|
pyramids.timer = pyramids.timer + dtime
|
||||||
if pyramids.timer < pyramids.max_time then return end
|
if pyramids.timer < pyramids.max_time then return end
|
||||||
pyramids.timer = 0
|
pyramids.timer = 0
|
||||||
for _,k in ipairs(pyramids.saved_chests) do
|
-- It might happen that chests are not loaded
|
||||||
pyramids.fill_chest(k)
|
if pyramids.saved_chests then
|
||||||
|
for _,k in ipairs(pyramids.saved_chests) do
|
||||||
|
pyramids.fill_chest(k)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
pyramids.saved_chests = loadchests() or {}
|
||||||
end
|
end
|
||||||
minetest.log("action","[tsm_pyramids] Chests reloaded")
|
minetest.log("action","[tsm_pyramids] Chests reloaded")
|
||||||
end)
|
end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user