Optimize ABM checks.
authorLars Hofhansl <larsh@apache.org>
Sat, 21 Jul 2018 10:07:43 +0000 (03:07 -0700)
committerLars Hofhansl <larsh@apache.org>
Sat, 21 Jul 2018 10:09:39 +0000 (03:09 -0700)
commit25cc5d1a3263aaca46f77f64b6cc20b1d2c32cac
tree87a63bc5bbee4e5908a5bf81ab2d28086957122b
parentc022ddce4bb0da68a842c6479ecd7d9660d7c2fe
Optimize ABM checks.

See #7555

Cache (up to 64) node types for each active block.
Check this cache first to see whether any ABM needs to be triggered for a block.
src/mapblock.h
src/serverenvironment.cpp