From 6745d1126e3f7ffc5c9da3d7643c1291aabac54a Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 14 Oct 2023 16:11:33 +0000 Subject: [PATCH] Format code [skip actions] --- .../command/commands/SetSceneTagCommand.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/emu/grasscutter/command/commands/SetSceneTagCommand.java b/src/main/java/emu/grasscutter/command/commands/SetSceneTagCommand.java index 26da2b8f1..3adbd3aa3 100644 --- a/src/main/java/emu/grasscutter/command/commands/SetSceneTagCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/SetSceneTagCommand.java @@ -83,7 +83,9 @@ public final class SetSceneTagCommand implements CommandHandler { .toList() .forEach( sceneTag -> { - targetPlayer.getSceneTags().computeIfAbsent(sceneTag.getSceneId(), k -> new HashSet<>()); + targetPlayer + .getSceneTags() + .computeIfAbsent(sceneTag.getSceneId(), k -> new HashSet<>()); targetPlayer.getSceneTags().get(sceneTag.getSceneId()).add(sceneTag.getId()); }); @@ -104,11 +106,14 @@ public final class SetSceneTagCommand implements CommandHandler { targetPlayer.getSceneTags().clear(); // targetPlayer.applyStartingSceneTags(); // private GameData.getSceneTagDataMap().values().stream() - .filter(SceneTagData::isDefaultValid) - .forEach(sceneTag -> { - targetPlayer.getSceneTags().computeIfAbsent(sceneTag.getSceneId(), k -> new HashSet<>()); - targetPlayer.getSceneTags().get(sceneTag.getSceneId()).add(sceneTag.getId()); - }); + .filter(SceneTagData::isDefaultValid) + .forEach( + sceneTag -> { + targetPlayer + .getSceneTags() + .computeIfAbsent(sceneTag.getSceneId(), k -> new HashSet<>()); + targetPlayer.getSceneTags().get(sceneTag.getSceneId()).add(sceneTag.getId()); + }); } private void setSceneTags(Player targetPlayer) {