Run formatter on code

This commit is contained in:
KingRainbow44
2023-08-27 23:23:01 -04:00
parent 40887b17fe
commit 154ace3d7e
24 changed files with 117 additions and 131 deletions

View File

@@ -15,9 +15,8 @@ import emu.grasscutter.scripts.data.controller.EntityController;
import emu.grasscutter.server.event.entity.*;
import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify;
import it.unimi.dsi.fastutil.ints.*;
import lombok.*;
import java.util.*;
import lombok.*;
public abstract class GameEntity {
@Getter private final Scene scene;

View File

@@ -69,12 +69,12 @@ public abstract class BaseRoute {
val pitch = Math.toRadians(startRot.getY());
val yaw = Math.toRadians(startRot.getZ());
val cr = (float)Math.cos(roll * 0.5);
val sr = (float)Math.sin(roll * 0.5);
val cp = (float)Math.cos(pitch * 0.5);
val sp = (float)Math.sin(pitch * 0.5);
val cy = (float)Math.cos(yaw * 0.5);
val sy = (float)Math.sin(yaw * 0.5);
val cr = (float) Math.cos(roll * 0.5);
val sr = (float) Math.sin(roll * 0.5);
val cp = (float) Math.cos(pitch * 0.5);
val sp = (float) Math.sin(pitch * 0.5);
val cy = (float) Math.cos(yaw * 0.5);
val sy = (float) Math.sin(yaw * 0.5);
result.setW(cr * cp * cy + sr * sp * sy);
result.setX(sr * cp * cy - cr * sp * sy);