Skip to content

Commit 195b3cb

Browse files
authored
Update scoreboard.js (#3318)
1 parent ab78bf8 commit 195b3cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/plugins/scoreboard.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function inject (bot) {
1818
delete scoreboards[packet.name]
1919

2020
for (const position in ScoreBoard.positions) {
21+
if (!ScoreBoard.positions[position]) continue
2122
const scoreboard = ScoreBoard.positions[position]
2223

2324
if (scoreboard && scoreboard.name === packet.name) {

0 commit comments

Comments
 (0)