Skip to content

Commit

Permalink
feat: slice waiting list
Browse files Browse the repository at this point in the history
  • Loading branch information
Pejosonic committed Sep 27, 2024
1 parent 729deb3 commit 67bccda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/queue/display/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ function updateScreenSystem() {
//in waiting list, finished enter queue screen
enable()

const playerNames = playerQueue.map((item) => players.getPlayer({ userId: item.player.address })?.name).slice(1)
const playerNames = playerQueue
.slice(0, 5)
.map((item) => players.getPlayer({ userId: item.player.address })?.name)
.slice(1)

TextShape.createOrReplace(waitingListEntity, {
text: playerNames.join('\n'),
Expand Down

0 comments on commit 67bccda

Please sign in to comment.