Oops other way around

This commit is contained in:
kuroppoi 2022-03-30 01:26:01 +02:00
parent bdcbdd1366
commit 8b9c978d1b

View file

@ -61,7 +61,7 @@ public class StructureGenerator implements GeneratorTask {
}
private void placeRandomSpawnTower(GeneratorContext ctx, int x) {
int surface = this.filled ? ctx.getZone().getSurface()[x]
int surface = !this.filled ? ctx.getZone().getSurface()[x]
: ctx.getHeight() / 8 + ctx.nextInt(Math.max(1, ctx.nextInt(ctx.getHeight() / 8)));
if(!spawnTowers.isEmpty()) {