fix minor issues & cleanup

This commit is contained in:
dfsek committed 2021-01-03 20:16:59 -07:00
1 parent b26847f250
commit 1536a13d3c
3 files changed
+9 -2

No files matched your search

@@ -221,4 +221,8 @@ public class MasterChunkGenerator implements TerraChunkGenerator {
}
}
}
public SamplerCache getCache() {
return cache;
}
}
@@ -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;