Skip to content

Commit 8680ca6

Browse files
committed
fix: stage arrows not removing pvp tools
1 parent c890717 commit 8680ca6

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/client/components/teleport-portal.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,12 @@ export class TeleportPortal extends DestroyableComponent<Attributes, PortalModel
5858
if (this.instance.HasTag("PvPPortal")) {
5959
Events.tools.addItemToBackpack("PvPSword", "ExtraItems", true);
6060
let lobbyUpdateDebounce = false;
61-
const conn = this.checkpoints.inLobbyUpdated.Connect(inLobby => {
61+
const conn = this.checkpoints.inLobbyUpdated.Connect(() => {
6262
if (lobbyUpdateDebounce) return;
6363
lobbyUpdateDebounce = true;
6464
task.delay(0.4, () => lobbyUpdateDebounce = false);
65-
66-
if (!inLobby) return;
6765
conn.Disconnect();
68-
Events.tools.updateBackpack()
66+
Events.tools.updateBackpack();
6967
});
7068
}
7169
});

src/client/controllers/checkpoints.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ export class CheckpointsController implements OnInit, OnDataUpdate, LogStart {
6666
if (this.getStage() + offset > this.stage) return;
6767
this.stageOffset += offset;
6868
this.update(advancing);
69-
this.inLobby = false;
70-
this.updateInLobby();
69+
this.setInLobby(false);
7170
}
7271

7372
public subtractStageOffset(offset = 1): void {
@@ -78,8 +77,7 @@ export class CheckpointsController implements OnInit, OnDataUpdate, LogStart {
7877
if (this.getStage() - offset < 0) return;
7978
this.stageOffset -= offset;
8079
this.update();
81-
this.inLobby = false;
82-
this.updateInLobby();
80+
this.setInLobby(false);
8381
}
8482

8583
public respawn(promptSkip = true): void {

0 commit comments

Comments
 (0)