87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
tree = t
goto found
end
end do
return
end ::found::
local tposhash = vector.to_string(tpos)
local live, should_cache
local mass_leaves, mass_trunk, topnode, prevalidate
if abm_cache.treehash[tposhash] then
live = true
local c = abm_cache.treehash[tposhash]
mass_leaves = c.mass_leaves
mass_trunk = c.mass_trunk
|
|
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
tree = t
goto found
end
end do
return
end ::found::
local tposhash = minetest.hash_node_position(tpos)
local live, should_cache
local mass_leaves, mass_trunk, topnode, prevalidate
if abm_cache.treehash[tposhash] then
live = true
local c = abm_cache.treehash[tposhash]
mass_leaves = c.mass_leaves
mass_trunk = c.mass_trunk
|