aboutsummaryrefslogtreecommitdiff
path: root/features/betterGuis
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-08 18:24:41 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-08 18:24:41 +0800
commit1cb7463dd27053f144b8fc8b7e8003a2f549e284 (patch)
treee8e8e0c63d6ced09b605500e3905824f63a89274 /features/betterGuis
parentcaf82bd3d36f9652d83d4840cb7c5598d5139ad6 (diff)
downloadSoopyV2-1cb7463dd27053f144b8fc8b7e8003a2f549e284.tar.gz
SoopyV2-1cb7463dd27053f144b8fc8b7e8003a2f549e284.tar.bz2
SoopyV2-1cb7463dd27053f144b8fc8b7e8003a2f549e284.zip
+ make dungeon start confirmation not trigger if dungeon is 1/2 players
Diffstat (limited to 'features/betterGuis')
-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