From 8b9c978d1b0071703bf4fb3f2682d3ff57e4ffa7 Mon Sep 17 00:00:00 2001 From: kuroppoi <68156848+kuroppoi@users.noreply.github.com> Date: Wed, 30 Mar 2022 01:26:01 +0200 Subject: [PATCH] Oops other way around --- .../java/brainwine/gameserver/zone/gen/StructureGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameserver/src/main/java/brainwine/gameserver/zone/gen/StructureGenerator.java b/gameserver/src/main/java/brainwine/gameserver/zone/gen/StructureGenerator.java index 1d89df7..668a4b1 100644 --- a/gameserver/src/main/java/brainwine/gameserver/zone/gen/StructureGenerator.java +++ b/gameserver/src/main/java/brainwine/gameserver/zone/gen/StructureGenerator.java @@ -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()) {