mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 22:23:03 +08:00
Format code [skip actions]
This commit is contained in:
parent
e6d32f5599
commit
a1f75e1537
@ -1153,19 +1153,22 @@ public final class Scene {
|
|||||||
|
|
||||||
List<SceneNpcBornEntry> sceneNpcBornEntries = new ArrayList<>();
|
List<SceneNpcBornEntry> sceneNpcBornEntries = new ArrayList<>();
|
||||||
sceneNpcBornCanidates.forEach(
|
sceneNpcBornCanidates.forEach(
|
||||||
i -> {
|
i -> {
|
||||||
var groupInstance = scriptManager.getGroupInstanceById(i.getGroupId());
|
var groupInstance = scriptManager.getGroupInstanceById(i.getGroupId());
|
||||||
if (groupInstance == null) return;
|
if (groupInstance == null) return;
|
||||||
if (i.getSuiteIdList() != null && !i.getSuiteIdList().contains(groupInstance.getActiveSuiteId())) return;
|
if (i.getSuiteIdList() != null
|
||||||
sceneNpcBornEntries.add(i);
|
&& !i.getSuiteIdList().contains(groupInstance.getActiveSuiteId())) return;
|
||||||
});
|
sceneNpcBornEntries.add(i);
|
||||||
|
});
|
||||||
|
|
||||||
if (sceneNpcBornEntries.size() > 0) {
|
if (sceneNpcBornEntries.size() > 0) {
|
||||||
this.broadcastPacket(new PacketGroupSuiteNotify(sceneNpcBornEntries));
|
this.broadcastPacket(new PacketGroupSuiteNotify(sceneNpcBornEntries));
|
||||||
Grasscutter.getLogger().trace("Loaded Npc Group Suite {}", 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<QuestGroupSuite> sceneGroupSuite) {
|
public void loadGroupForQuest(List<QuestGroupSuite> sceneGroupSuite) {
|
||||||
|
Loading…
Reference in New Issue
Block a user