From 6c6966961fefe48516d71ce10c803f6d6250e16c Mon Sep 17 00:00:00 2001 From: ShiroySan Date: Thu, 16 May 2024 04:21:58 +0800 Subject: [PATCH] Reapply "Fixed Filters for WorldBoss checking first ID only" This reverts commit e8bb3cd8c63ebcb754160e0b262ab23cab006fb6. --- 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(