Distribute treasures more evenly across chests

This commit is contained in:
Wuzzy
2019-08-20 02:08:44 +02:00
parent d6bc045bbb
commit d3187e4a08
2 changed files with 18 additions and 18 deletions

View File

@ -37,7 +37,7 @@ function tsm_pyramids.fill_chest(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
if math.random(1,10) <= 5 then
if math.random(1,10) < 7 then
return
end
local stacks = {}