do not remove leaves on processing area border

This commit is contained in:
Alexander Weber 2018-06-01 00:01:29 +02:00
parent ddbef79501
commit a9d4160ae8

View File

@ -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