From b4a4e06637efee255990334d9daa7ea3f5e9ba19 Mon Sep 17 00:00:00 2001 From: fredboy Date: Wed, 17 Apr 2024 16:20:45 +0700 Subject: [PATCH] Remove seed from default world config --- .../game/model/world/generator/WorldGeneratorConfig.kt | 2 +- core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt b/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt index 251b901..ea34209 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt +++ b/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt @@ -19,7 +19,7 @@ data class WorldGeneratorConfig( private const val DEFAULT_HEIGHT = 256 private const val DEFAULT_MIN_BIOME_SIZE = 64 - fun getDefaultWithSeed(seed: Long): WorldGeneratorConfig { + fun getDefaultWithSeed(): WorldGeneratorConfig { return WorldGeneratorConfig( width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT, diff --git a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java b/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java index a908971..b616424 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java +++ b/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java @@ -52,7 +52,7 @@ public class GameWorld implements Disposable { if (isNewGame) { mWidth = DEFAULT_WIDTH; mHeight = DEFAULT_HEIGHT; - Pair maps = new GameWorldGenerator(WorldGeneratorConfig.Companion.getDefaultWithSeed(TimeUtils.millis())).generate(); + Pair maps = new GameWorldGenerator(WorldGeneratorConfig.Companion.getDefaultWithSeed()).generate(); mForeMap = maps.getFirst(); mBackMap = maps.getSecond(); mMobsController.getPlayer().respawn(this); -- 2.29.2