From 88315ec712fdb5f859020fb28550a50ff77c08f2 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 17 Sep 2023 02:57:38 +0000 Subject: [PATCH] Format code [skip actions] --- .../java/emu/grasscutter/command/commands/SpawnCommand.java | 2 +- src/main/java/emu/grasscutter/game/HandbookActions.java | 3 ++- .../emu/grasscutter/game/managers/blossom/BlossomActivity.java | 3 ++- src/main/java/emu/grasscutter/game/world/Scene.java | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/emu/grasscutter/command/commands/SpawnCommand.java b/src/main/java/emu/grasscutter/command/commands/SpawnCommand.java index 1b570539a..f47de0d19 100644 --- a/src/main/java/emu/grasscutter/command/commands/SpawnCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/SpawnCommand.java @@ -65,7 +65,7 @@ public final class SpawnCommand implements CommandHandler { rot.setZ(CommandHelpers.parseRelative(args.get(6), rot.getZ())); } catch (NumberFormatException ignored) { CommandHandler.sendMessage( - sender, translate(sender, "commands.execution.argument_error")); + sender, translate(sender, "commands.execution.argument_error")); } // Fallthrough case 4: try { diff --git a/src/main/java/emu/grasscutter/game/HandbookActions.java b/src/main/java/emu/grasscutter/game/HandbookActions.java index 967b5037c..60283d8df 100644 --- a/src/main/java/emu/grasscutter/game/HandbookActions.java +++ b/src/main/java/emu/grasscutter/game/HandbookActions.java @@ -241,7 +241,8 @@ public interface HandbookActions { // Create the entity. for (var i = 1; i <= request.getAmount(); i++) { - var entity = new EntityMonster(scene, entityData, player.getPosition(), player.getRotation(), level); + var entity = + new EntityMonster(scene, entityData, player.getPosition(), player.getRotation(), level); scene.addEntity(entity); } diff --git a/src/main/java/emu/grasscutter/game/managers/blossom/BlossomActivity.java b/src/main/java/emu/grasscutter/game/managers/blossom/BlossomActivity.java index 323576588..d73778cca 100644 --- a/src/main/java/emu/grasscutter/game/managers/blossom/BlossomActivity.java +++ b/src/main/java/emu/grasscutter/game/managers/blossom/BlossomActivity.java @@ -104,7 +104,8 @@ public final class BlossomActivity { var monsterData = GameData.getMonsterDataMap().get((int) entry); var level = scene.getEntityLevel(1, worldLevelOverride); - var entity = new EntityMonster(scene, monsterData, pos.nearby2d(4f), Position.ZERO, level); + var entity = + new EntityMonster(scene, monsterData, pos.nearby2d(4f), Position.ZERO, level); scene.addEntity(entity); newMonsters.add(entity); } diff --git a/src/main/java/emu/grasscutter/game/world/Scene.java b/src/main/java/emu/grasscutter/game/world/Scene.java index 0caadfe2d..9e7a1c7db 100644 --- a/src/main/java/emu/grasscutter/game/world/Scene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -816,7 +816,8 @@ public class Scene { int level = this.getEntityLevel(entry.getLevel(), worldLevelOverride); - EntityMonster monster = new EntityMonster(this, data, entry.getPos(), entry.getRot(), level); + EntityMonster monster = + new EntityMonster(this, data, entry.getPos(), entry.getRot(), level); monster.setGroupId(entry.getGroup().getGroupId()); monster.setPoseId(entry.getPoseId()); monster.setConfigId(entry.getConfigId());