Differences From
Artifact [483baaca72]:
203 203 local leaftype = treedef and treedef.leaves or nil
204 204 if not leaftype then return false end
205 205
206 206 local uppermost, lowermost
207 207 local found_leaves = false
208 208
209 209 local treemap, treenodes = amass(pos,function(node, where)
210 - print(where, 'treetype',treetype,'node',node.name,node.param1,node.param2)
211 210 if node.name == treetype and node.param1 == 0 then
212 211 -- abuse predicate so we can avoid iterating over it all later
213 212 -- again -- this function is expensive enough already
214 213 if (not lowermost) or where.y < lowermost.y then
215 214 lowermost = where
216 215 end
217 216