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