Implemented last-access-caching for getLazyBlock().

This commit is contained in:
sk89q
2014-03-31 18:43:47 -07:00
parent fa24eb60fa
commit b2d1562595
2 changed files with 68 additions and 1 deletions

View File

@ -129,7 +129,8 @@ public class EditSession implements Extent {
// This extents are ALWAYS used
fastModeExtent = new FastModeExtent(world, false);
ChunkLoadingExtent chunkLoadingExtent = new ChunkLoadingExtent(fastModeExtent, world);
BlockQuirkExtent quirkExtent = new BlockQuirkExtent(chunkLoadingExtent, world);
LastAccessExtentCache cacheExtent = new LastAccessExtentCache(chunkLoadingExtent);
BlockQuirkExtent quirkExtent = new BlockQuirkExtent(cacheExtent, world);
DataValidatorExtent validator = new DataValidatorExtent(quirkExtent, world);
blockBagExtent = new BlockBagExtent(validator, world, blockBag);