Skip to content

Commit c890717

Browse files
committed
fix: keeping sword when clicking lobby button
1 parent 24432e2 commit c890717

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/client/components/ui/lobby-button.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ export class LobbyButton extends BaseComponent<{}, ImageButton & { Icon: ImageLa
2020
private readonly checkpoints: CheckpointsController
2121
) { super(); }
2222

23+
// fuck this code
2324
public onStart(): void {
2425
this.checkpoints.inLobbyUpdated.Connect(inLobby => this.updateIcon(inLobby));
2526
this.instance.MouseButton1Click.Connect(() => {
26-
this.checkpoints.setInLobby(!this.checkpoints.inLobby);
27+
this.checkpoints.setInLobby(this.checkpoints.notLobbyNotObby ? true : !this.checkpoints.inLobby);
2728
if (this.checkpoints.inLobby)
2829
this.character.teleport(World.Lobby.Dark.SpawnLocation.CFrame);
2930
else

0 commit comments

Comments
 (0)