Format code [skip actions]

This commit is contained in:
github-actions 2023-09-17 02:57:38 +00:00
parent fdad4218e7
commit 88315ec712
4 changed files with 7 additions and 4 deletions

View File

@ -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 {

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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());