From 368392118f4383ca69f1c9b19eb21c18488eaf85 Mon Sep 17 00:00:00 2001 From: YuTian <2953516620@qq.com> Date: Tue, 13 Aug 2024 11:35:18 +0800 Subject: [PATCH] 1.2.1 --- .../com/io/yutian/thewardungeon/dungeon/DungeonInstance.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/io/yutian/thewardungeon/dungeon/DungeonInstance.java b/src/main/java/com/io/yutian/thewardungeon/dungeon/DungeonInstance.java index 48cfe8c..754817b 100644 --- a/src/main/java/com/io/yutian/thewardungeon/dungeon/DungeonInstance.java +++ b/src/main/java/com/io/yutian/thewardungeon/dungeon/DungeonInstance.java @@ -236,7 +236,6 @@ public class DungeonInstance { break; } state = DungeonState.RUNNING; - countdown = dungeon.getConfig().getOption().getCountdown(); for (DungeonPlayer dungeonPlayer : getPlayers()) { dungeonPlayer.getPlayer().setGameMode(dungeon.getConfig().getOption().getGameMode()); dungeonPlayer.getPlayer().teleport(dungeon.getConfig().getStartPoint().toLocation(worldInstance.getWorld())); @@ -305,8 +304,8 @@ public class DungeonInstance { } private void updateBossBar() { - bossBar.setTitle("倒计时: " + countdown + "/" + dungeon.getConfig().getOption().getCountdown()); - float progress = (float) countdown / (float) dungeon.getConfig().getOption().getCountdown(); + bossBar.setTitle("倒计时: " + countdown + "/" + totalCountdown); + float progress = (float) countdown / (float) totalCountdown; bossBar.setProgress(progress); bossBar.setColor(BossBarUtil.getBarColor(progress)); }