mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-01-03 13:57:36 +01:00
Require not null bosses.
This commit is contained in:
parent
010ac0ad15
commit
63a88682ce
@ -105,6 +105,7 @@ public class ActiveBossHolder implements IActiveHolder {
|
||||
|
||||
// grab list of all valid entities by UUID that can be removed
|
||||
Map<Integer, Entity> toRemove = this.livingEntityMap.entrySet().stream()
|
||||
.filter(Objects::nonNull) // This may fix ticket #4522
|
||||
.collect(Collectors.toMap(Map.Entry::getKey, e -> ServerUtils.get().getEntity(e.getValue())))
|
||||
.entrySet().stream()
|
||||
.filter(e -> e.getValue() != null && e.getValue().getWorld().isChunkLoaded(
|
||||
|
Loading…
Reference in New Issue
Block a user