Add softref option for chunk snapshot cache

This commit is contained in:
Mike Primm 2013-06-25 01:09:25 -05:00
parent 5bc4de6a8b
commit b85c38e3a7
3 changed files with 18 additions and 7 deletions

View file

@ -843,7 +843,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
return;
}
playerList = core.playerList;
sscache = new SnapshotCache(core.getSnapShotCacheSize());
sscache = new SnapshotCache(core.getSnapShotCacheSize(), core.useSoftRefInSnapShotCache());
/* Get map manager from core */
mapManager = core.getMapManager();