free the block cache memory after using it (fix mem leak)

This commit is contained in:
Vanessa Ezekowitz 2014-08-13 21:16:49 -04:00
parent ce9212c413
commit c311de6694

View File

@ -250,6 +250,7 @@ function plantslib:generate_block(minp, maxp, blockseed)
end
end
end
plantslib.surface_nodes.blockhash = nil -- nuke the block cache after using it (prevent a mem leak).
end
end