aboutsummaryrefslogtreecommitdiff
path: root/features/betterGuis/dungeonReadyGui.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/betterGuis/dungeonReadyGui.js')
-rw-r--r--features/betterGuis/dungeonReadyGui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/betterGuis/dungeonReadyGui.js b/features/betterGuis/dungeonReadyGui.js
index c9bf63f..c0bf7e0 100644
--- a/features/betterGuis/dungeonReadyGui.js
+++ b/features/betterGuis/dungeonReadyGui.js
@@ -85,7 +85,7 @@ class DungeonReadyGui {
startDungeon() {
if (Player.getContainer().getName() !== "Start Dungeon?") return
- if (!this.confirmationCooldown && World.getAllPlayers().filter(p => p.getPing() === 1).length !== this.currPlayers) {
+ if (!this.confirmationCooldown && World.getAllPlayers().filter(p => p.getPing() === 1).length !== this.currPlayers && !(World.getAllPlayers().filter(p => p.getPing() === 1).length === 1 && this.currPlayers === 2)) {
this.startButton.setText("§0Confirm starting Dungeon? (3s)")
this.startButton.desc.setText("§0(" + World.getAllPlayers().filter(p => p.getPing() === 1).length + "/" + this.currPlayers + " in dungeon)")
this.confirmationCooldown = Date.now() + 3000