mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Fix Structure loot generation (again) lol
This commit is contained in:
parent
70e0d8bdfd
commit
4de1e4d543
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ function mcl_structures.fill_chests(p1,p2,loot,pr)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function generate_loot(pos, def, pr)
|
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 p1 = vector.offset(pos,-hl,-hl,-hl)
|
||||||
local p2 = 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
|
if def.loot then mcl_structures.fill_chests(p1,p2,def.loot,pr) end
|
||||||
|
|
Loading…
Reference in a new issue