Skip to content

Commit

Permalink
do not remove leaves on processing area border
Browse files Browse the repository at this point in the history
  • Loading branch information
bell07 committed May 31, 2018
1 parent ddbef79 commit a9d4160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9d4160

Please sign in to comment.