1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

Updated fail mod

- Updated fail with files closed
- Fixed crash with malformed list for pyramids.fill_chests
This commit is contained in:
LeMagnesium 2015-03-27 19:03:47 +01:00
parent db38a9c159
commit 26bd691550
3 changed files with 10 additions and 3 deletions

View File

@ -31,7 +31,8 @@ minetest.register_on_shutdown(function()
if v ~= 0 then
pntf:write(i.." "..v.."\n")
end
end
end
io.close(pntf)
end)
minetest.register_chatcommand("cookie", {

View File

@ -75,7 +75,8 @@ minetest.register_on_shutdown(function()
if v ~= 0 then
pntf:write(i.." "..v.."\n")
end
end
end
io.close(pntf)
end)
minetest.register_chatcommand("fail", {

View File

@ -22,7 +22,12 @@ function pyramids.fill_chest(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
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
local stacks = {}
if minetest.get_modpath("treasurer") ~= nil then