mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
feat: feature generation but only in even chunks
This commit is contained in:
@@ -39,7 +39,7 @@ public class GeneratedChunkCache {
|
||||
return chunk;
|
||||
}
|
||||
|
||||
public CachedChunk at(int x, int y) {
|
||||
return cache.get(Pair.of(x, y));
|
||||
public CachedChunk at(int x, int z) {
|
||||
return cache.get(Pair.of(x, z));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,10 @@ public class MinestomChunkGeneratorWrapper implements Generator {
|
||||
|
||||
//chunk.writeRelative(unit.modifier());
|
||||
|
||||
if (start.chunkX() % 2 == 0 && start.chunkZ() % 2 == 0) {
|
||||
chunk.writeRelative(unit.modifier());
|
||||
}
|
||||
|
||||
unit.fork(setter -> {
|
||||
MinestomProtoWorld protoWorld = new MinestomProtoWorld(
|
||||
cache,
|
||||
|
||||
Reference in New Issue
Block a user