Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqtoday authored Mar 14, 2024
2 parents 144d5a5 + d9e9e15 commit 56a019c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plugins/scoreboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ function inject (bot) {

for (const position in ScoreBoard.positions) {
const scoreboard = ScoreBoard.positions[position]
if (scoreboard.name === packet.name) {

if (scoreboard && scoreboard.name === packet.name) {
delete ScoreBoard.positions[position]
break
}
Expand Down

0 comments on commit 56a019c

Please sign in to comment.