Fix Structure loot generation (again) lol

This commit is contained in:
cora 2022-09-13 23:08:45 +02:00
parent 7f2f565946
commit 9ae9f8b3da

View file

@ -24,7 +24,7 @@ function mcl_structures.fill_chests(p1,p2,loot,pr)
end
local function generate_loot(pos, def, pr)
local hl = def.sidelen / 2
local hl = def.sidelen
local p1 = vector.offset(pos,-hl,-hl,-hl)
local p2 = vector.offset(pos,hl,hl,hl)
if def.loot then mcl_structures.fill_chests(p1,p2,def.loot,pr) end