mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-08 16:56:07 +00:00
fix minor issues & cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user