From 26a73117a9daadb3f4841fd0a9a2c2f3ede1a4c5 Mon Sep 17 00:00:00 2001 From: varttist Date: Fri, 2 Oct 2026 21:33:07 +0300 Subject: [PATCH] `MapGen`: fix trees replace trunks --- mods/CORE/MapGen/src/MapGen/Tree.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/MapGen/src/MapGen/Tree.lua b/mods/CORE/MapGen/src/MapGen/Tree.lua index b3bebd9..6520419 100644 --- a/mods/CORE/MapGen/src/MapGen/Tree.lua +++ b/mods/CORE/MapGen/src/MapGen/Tree.lua @@ -113,7 +113,7 @@ function Tree:place(pos) local pos1, pos2 = pos - v(16, 0, 16), pos + v(16, 80, 16) --[[@as MapVector]] if isAreaGenerated(pos1, pos2) then - corePlaceSchematic(pos, self.path, getRotation(pos), nil, nil, 'place_center_x, place_center_z') + corePlaceSchematic(pos, self.path, getRotation(pos), nil, false, 'place_center_x, place_center_z') else coreEmergeArea(pos1, pos2) end @@ -122,7 +122,7 @@ end ---@param voxelManip VoxelManip ---@param pos MapVector function Tree:placeOnVM(voxelManip, pos) - local result = corePlaceSchematicOnVM(voxelManip, pos, self.path, getRotation(pos), nil, nil, 'place_center_x, place_center_z') + local result = corePlaceSchematicOnVM(voxelManip, pos, self.path, getRotation(pos), nil, false, 'place_center_x, place_center_z') if not result then voxelManip:set_node_at(pos, {name = self.placerName, force_place = true})