From 3efedd7d226df017903582f268b53c1039990c01 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 2 Dec 2024 12:32:33 +0700 Subject: [PATCH] Fix dungeon spawn retries being 1 smaller than normal --- .../ru/dbotthepony/kstarbound/server/world/ServerWorld.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt index 7c064149..03c0395b 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorld.kt @@ -756,7 +756,7 @@ class ServerWorld private constructor( currentDungeonID++ break } - } while (--spawnDungeonRetries > 0) + } while (spawnDungeonRetries-- > 0) } }