From a1f75e1537f64e65b493e33726e481e31d64da25 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 9 Jun 2023 17:29:26 +0000 Subject: [PATCH] Format code [skip actions] --- .../java/emu/grasscutter/game/world/Scene.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/world/Scene.java b/src/main/java/emu/grasscutter/game/world/Scene.java index dafedb57e..9bca99fdf 100644 --- a/src/main/java/emu/grasscutter/game/world/Scene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -1153,19 +1153,22 @@ public final class Scene { List sceneNpcBornEntries = new ArrayList<>(); sceneNpcBornCanidates.forEach( - i -> { - var groupInstance = scriptManager.getGroupInstanceById(i.getGroupId()); - if (groupInstance == null) return; - if (i.getSuiteIdList() != null && !i.getSuiteIdList().contains(groupInstance.getActiveSuiteId())) return; - sceneNpcBornEntries.add(i); - }); + i -> { + var groupInstance = scriptManager.getGroupInstanceById(i.getGroupId()); + if (groupInstance == null) return; + if (i.getSuiteIdList() != null + && !i.getSuiteIdList().contains(groupInstance.getActiveSuiteId())) return; + sceneNpcBornEntries.add(i); + }); if (sceneNpcBornEntries.size() > 0) { this.broadcastPacket(new PacketGroupSuiteNotify(sceneNpcBornEntries)); Grasscutter.getLogger().trace("Loaded Npc Group Suite {}", sceneNpcBornEntries); } - return npcList.stream().filter(i -> this.npcBornEntrySet.contains(i) || sceneNpcBornEntries.contains(i)).toList(); + return npcList.stream() + .filter(i -> this.npcBornEntrySet.contains(i) || sceneNpcBornEntries.contains(i)) + .toList(); } public void loadGroupForQuest(List sceneGroupSuite) {