From a9d4160ae8d14dae3f069ea01f32b5648229b83c Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Fri, 1 Jun 2018 00:01:29 +0200 Subject: [PATCH] do not remove leaves on processing area border --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index bf3d928..9b610bb 100644 --- a/init.lua +++ b/init.lua @@ -246,7 +246,7 @@ function woodcutting_class:process_leaves(pos) local area = VoxelArea:new({MinEdge = minp, MaxEdge = maxp}) local data = vm:get_data() - for i in area:iterp(r_min, r_max) do + for i in area:iterp(vector.add(r_min, (self.leaves_distance+1)), vector.subtract(r_max, (self.leaves_distance+1))) do if woodcutting.leaves_content_ids[data[i]] then local leavespos = area:position(i) -- search if no other tree node near the leaves