Skip to content

Commit fa5723d

Browse files
committed
It seems I have made a catastrophic error
1 parent f7a5a32 commit fa5723d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gameserver/src/main/java/brainwine/gameserver/zone/gen/tasks/CaveGeneratorTask.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public void generate(GeneratorContext ctx) {
8080

8181
for(Cave cave : caves) {
8282
ctx.addCave(cave);
83+
boolean hollow = !asteroids && (terrainType == TerrainType.FILLED || cave.getDepth() >= 0.1) && ctx.nextDouble() <= 0.1;
8384
StoneType stoneType = cave.getStoneType();
8485
int spawnerCount = 0;
8586

@@ -121,8 +122,6 @@ public void generate(GeneratorContext ctx) {
121122
}
122123

123124
// Hollow out the cave if applicable
124-
boolean hollow = !asteroids && (terrainType == TerrainType.FILLED || cave.getDepth() >= 0.1) && ctx.nextDouble() <= 0.1;
125-
126125
if(hollow && SimplexNoise.noise2(ctx.getSeed(), x / 20.0, y / 20.0) > 0.4) {
127126
ctx.updateBlock(x, y, Layer.BASE, 1);
128127
}

0 commit comments

Comments
 (0)