From 4de1e4d5437ab193f5953e0eb24868e6b1565ca3 Mon Sep 17 00:00:00 2001 From: cora Date: Tue, 13 Sep 2022 23:08:45 +0200 Subject: [PATCH] Fix Structure loot generation (again) lol --- mods/MAPGEN/mcl_structures/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_structures/api.lua b/mods/MAPGEN/mcl_structures/api.lua index 53acbb08f..6b157717e 100644 --- a/mods/MAPGEN/mcl_structures/api.lua +++ b/mods/MAPGEN/mcl_structures/api.lua @@ -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