From 4210197f9a7656c8cafabad57408883ca77d4ef4 Mon Sep 17 00:00:00 2001 From: ShiroySan Date: Thu, 16 May 2024 04:15:02 +0800 Subject: [PATCH] Fixed Filters for WorldBoss checking first ID only --- src/main/java/emu/grasscutter/game/world/WorldDataSystem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/world/WorldDataSystem.java b/src/main/java/emu/grasscutter/game/world/WorldDataSystem.java index 39bc93717..20f1ed3db 100644 --- a/src/main/java/emu/grasscutter/game/world/WorldDataSystem.java +++ b/src/main/java/emu/grasscutter/game/world/WorldDataSystem.java @@ -52,8 +52,8 @@ public class WorldDataSystem extends BaseGameSystem { var investigationMonsterData = GameData.getInvestigationMonsterDataMap().values().parallelStream() .filter(imd -> imd.getMonsterIdList() != null && !imd.getMonsterIdList().isEmpty()) - .filter(imd -> imd.getMonsterIdList().get(0) == monsterId) - .findFirst(); + .filter(imd -> imd.getMonsterIdList().contains(monsterId)) + .findAny(); return investigationMonsterData .map(