mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +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
@ -31,7 +31,8 @@ minetest.register_on_shutdown(function()
|
|||||||
if v ~= 0 then
|
if v ~= 0 then
|
||||||
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", {
|
||||||
|
@ -75,7 +75,8 @@ minetest.register_on_shutdown(function()
|
|||||||
if v ~= 0 then
|
if v ~= 0 then
|
||||||
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