From 36a6a353a3a662090b61075f0223e782be9a83a4 Mon Sep 17 00:00:00 2001 From: cora Date: Sat, 12 Nov 2022 14:00:38 +0100 Subject: [PATCH 1/2] Fix local construct_nodes --- 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 120cd7c7f..b33f171d7 100644 --- a/mods/MAPGEN/mcl_structures/api.lua +++ b/mods/MAPGEN/mcl_structures/api.lua @@ -114,7 +114,7 @@ function mcl_structures.construct_nodes(p1,p2,nodes) end local function construct_nodes(pos,def,pr) - return mcl_structures.construct_nodes(vector.offset(pos,-def.sidelen/2,0,-def.sidelen/2),vector.offset(pos,def.sidelen/2,def.sidelen,def.sidelen/2)) + return mcl_structures.construct_nodes(vector.offset(pos,-def.sidelen/2,0,-def.sidelen/2),vector.offset(pos,def.sidelen/2,def.sidelen,def.sidelen/2),def.construct_nodes) end From 00541cbfb8ad70fe80d7daeb7d98c7c71367cf4c Mon Sep 17 00:00:00 2001 From: cora Date: Sat, 12 Nov 2022 14:04:50 +0100 Subject: [PATCH 2/2] Fix end spike wrong vector.add usage --- mods/MAPGEN/mcl_structures/end_spawn.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/MAPGEN/mcl_structures/end_spawn.lua b/mods/MAPGEN/mcl_structures/end_spawn.lua index cf66e4b9f..5769ac487 100644 --- a/mods/MAPGEN/mcl_structures/end_spawn.lua +++ b/mods/MAPGEN/mcl_structures/end_spawn.lua @@ -107,8 +107,8 @@ mcl_structures.register_structure("end_spike",{ place_func = function(pos,def,pr) local d = pr:next(6,12) local h = d * pr:next(4,6) - local p1 = vector.add(pos,-d/2,0,-d/2) - local p2 = vector.add(pos,d/2,h+d,d/2) + local p1 = vector.offset(pos, -d / 2, 0, -d / 2) + local p2 = vector.offset(pos, d / 2, h + d, d / 2) minetest.emerge_area(p1, p2, function(blockpos, action, calls_remaining, param) if calls_remaining ~= 0 then return end local s = make_endspike(pos,d,h)