1.2.1
This commit is contained in:
		
							parent
							
								
									a4a544a001
								
							
						
					
					
						commit
						368392118f
					
				|  | @ -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)); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user