mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-17 08:05:25 +01:00
Fix BossBar#addViewer for the first player boss bar
This commit is contained in:
parent
e6f66b9816
commit
d80c2e0658
@ -50,7 +50,8 @@ public class BossBar implements Viewable {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Check max boss bar count
|
// Check max boss bar count
|
||||||
if (getBossBars(player).size() >= MAX_BOSSBAR) {
|
final Set<BossBar> playerBossBars = getBossBars(player);
|
||||||
|
if (playerBossBars != null && playerBossBars.size() >= MAX_BOSSBAR) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Add to the map
|
// Add to the map
|
||||||
|
Loading…
Reference in New Issue
Block a user