fix minor issues & cleanup

This commit is contained in:
dfsek
2021-01-03 20:16:59 -07:00
parent b26847f250
commit 1536a13d3c
3 changed files with 9 additions and 2 deletions

View File

@@ -221,4 +221,8 @@ public class MasterChunkGenerator implements TerraChunkGenerator {
}
}
}
public SamplerCache getCache() {
return cache;
}
}

View File

@@ -27,6 +27,9 @@ public class SamplerCache {
return containerMap.computeIfAbsent(world.getSeed(), seed -> new Container(world)).getChunk(chunkX, chunkZ);
}
public void clear() {
containerMap.clear();
}
private class Container {
private final World world;