mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
Updated fail mod
- Updated fail with files closed - Fixed crash with malformed list for pyramids.fill_chests
This commit is contained in:
parent
db38a9c159
commit
26bd691550
@ -32,6 +32,7 @@ minetest.register_on_shutdown(function()
|
|||||||
pntf:write(i.." "..v.."\n")
|
pntf:write(i.." "..v.."\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
io.close(pntf)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_chatcommand("cookie", {
|
minetest.register_chatcommand("cookie", {
|
||||||
|
@ -76,6 +76,7 @@ minetest.register_on_shutdown(function()
|
|||||||
pntf:write(i.." "..v.."\n")
|
pntf:write(i.." "..v.."\n")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
io.close(pntf)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_chatcommand("fail", {
|
minetest.register_chatcommand("fail", {
|
||||||
|
@ -22,7 +22,12 @@ function pyramids.fill_chest(pos)
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("main", 8*4)
|
inv:set_size("main", 8*4)
|
||||||
inv:set_list("main",{[1] = "", [32] = ""})
|
inv:set_list("main",
|
||||||
|
{
|
||||||
|
[1] = "",
|
||||||
|
[32] = ""
|
||||||
|
}
|
||||||
|
)
|
||||||
if math.random(1,10) < 7 then return end
|
if math.random(1,10) < 7 then return end
|
||||||
local stacks = {}
|
local stacks = {}
|
||||||
if minetest.get_modpath("treasurer") ~= nil then
|
if minetest.get_modpath("treasurer") ~= nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user