From db38a9c159278306ee4a03c27b812222222f1e7f Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Fri, 27 Mar 2015 17:51:31 +0100 Subject: [PATCH] Chests are cleaned before being updated --- mods/tsm_pyramids/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/tsm_pyramids/init.lua b/mods/tsm_pyramids/init.lua index 2f6d87ea..2c49b71b 100644 --- a/mods/tsm_pyramids/init.lua +++ b/mods/tsm_pyramids/init.lua @@ -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