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

Chests are cleaned before being updated

This commit is contained in:
LeMagnesium 2015-03-27 17:51:31 +01:00
parent cc8dc31f30
commit db38a9c159

View File

@ -22,6 +22,7 @@ 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] = ""})
if math.random(1,10) < 7 then return end
local stacks = {}
if minetest.get_modpath("treasurer") ~= nil then