mirror of
https://github.com/songoda/EpicBosses.git
synced 2025-03-12 06:29:30 +01:00
fix error when using killall
This commit is contained in:
parent
e1aadc3a54
commit
ddf7ccf22b
@ -106,7 +106,7 @@ public class ActiveBossHolder implements IActiveHolder {
|
|||||||
|
|
||||||
// grab list of all valid entities by UUID that can be removed
|
// grab list of all valid entities by UUID that can be removed
|
||||||
Map<Integer, Entity> toRemove = this.livingEntityMap.entrySet().stream()
|
Map<Integer, Entity> toRemove = this.livingEntityMap.entrySet().stream()
|
||||||
.filter(Objects::nonNull) // This may fix ticket #4522
|
.filter(e -> e != null && e.getValue() != null && ServerUtils.get().getEntity(e.getValue()) != null) // This may fix ticket #4522
|
||||||
.collect(Collectors.toMap(Map.Entry::getKey, e -> ServerUtils.get().getEntity(e.getValue())))
|
.collect(Collectors.toMap(Map.Entry::getKey, e -> ServerUtils.get().getEntity(e.getValue())))
|
||||||
.entrySet().stream()
|
.entrySet().stream()
|
||||||
.filter(e -> e.getValue() != null && e.getValue().getWorld().isChunkLoaded(
|
.filter(e -> e.getValue() != null && e.getValue().getWorld().isChunkLoaded(
|
||||||
|
Loading…
Reference in New Issue
Block a user