fix massive crators appearing, see: https://eusv.net/ZHMjQZTTNNM2nS

This commit is contained in:
Holly Stubbs 2023-04-17 02:15:51 +01:00
parent 8b906bfe8f
commit ad1c402d84
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -139,10 +139,10 @@ export class HillyGenerator implements IGenerator {
while (caveY-- > 1) { while (caveY-- > 1) {
if ( if (
this.caveGenerator1((chunk.x * 16 + x) / 16, caveY / 16, (chunk.z * 16 + z) / 16) > 0.45 || ((this.caveGenerator1((chunk.x * 16 + x) / 16, caveY / 16, (chunk.z * 16 + z) / 16) +
this.caveGenerator2((chunk.x * 16 + x) / 8, caveY / 8, (chunk.z * 16 + z) / 8) > 0.6 || this.caveGenerator2((chunk.x * 16 + x) / 8, caveY / 8, (chunk.z * 16 + z) / 8)) / 2) > 0.45
this.caveGenerator3((chunk.x * 16 + x) / 256, caveY / 256, (chunk.z * 16 + z) / 256) > 0.6 || //this.caveGenerator3((chunk.x * 16 + x) / 256, caveY / 256, (chunk.z * 16 + z) / 256) > 0.6 ||
this.caveGenerator4((chunk.x * 16 + x) / 128, caveY / 128, (chunk.z * 16 + z) / 128) > 0.6 //this.caveGenerator4((chunk.x * 16 + x) / 128, caveY / 128, (chunk.z * 16 + z) / 128) > 0.6
) { ) {
if (caveY <= 3) { if (caveY <= 3) {
chunk.setBlock(Block.lavaStill.blockId, x, caveY, z); chunk.setBlock(Block.lavaStill.blockId, x, caveY, z);