Skip to content

Commit

Permalink
pain
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePlasticPotato committed Jun 30, 2024
1 parent 242a339 commit ae1bd53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
import org.valkyrienskies.core.api.ships.ClientShip;
import org.valkyrienskies.core.api.ships.Ship;
import org.valkyrienskies.core.impl.game.ships.ShipObjectClient;
import org.valkyrienskies.mod.common.VSClientGameUtils;
import org.valkyrienskies.mod.common.VSGameUtilsKt;
import org.valkyrienskies.mod.common.util.VectorConversionsMCKt;
Expand Down Expand Up @@ -58,8 +58,8 @@ private static PoseStack redirectTransformStackTranslate(final PoseStack ms) {

final Level level = Minecraft.getInstance().level;
if (level != null && valkyrienskies$vec != null) {
final ShipObjectClient ship;
if ((ship = (ShipObjectClient) VSGameUtilsKt.getShipManagingPos(level, valkyrienskies$vec)) != null) {
final ClientShip ship;
if ((ship = (ClientShip) VSGameUtilsKt.getShipManagingPos(level, valkyrienskies$vec)) != null) {
final Quaterniond rotation = new Quaterniond().identity();
final Quaterniond yawQuat = new Quaterniond().rotateY(valkyrienskies$angles.y);
final Quaterniond pitchQuat = new Quaterniond().rotateX(valkyrienskies$angles.x);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
import org.valkyrienskies.core.api.ships.ClientShip;
import org.valkyrienskies.core.api.ships.Ship;
import org.valkyrienskies.core.impl.game.ships.ShipObjectClient;
import org.valkyrienskies.mod.common.VSClientGameUtils;
import org.valkyrienskies.mod.common.VSGameUtilsKt;
import org.valkyrienskies.mod.common.util.VectorConversionsMCKt;
Expand Down Expand Up @@ -54,8 +54,8 @@ private static PoseStack redirectTransformStackTranslate(final PoseStack ms) {

final Level level = Minecraft.getInstance().level;
if (level != null && valkyrienskies$vec != null) {
final ShipObjectClient ship;
if ((ship = (ShipObjectClient) VSGameUtilsKt.getShipManagingPos(level, valkyrienskies$vec)) != null) {
final ClientShip ship;
if ((ship = (ClientShip) VSGameUtilsKt.getShipManagingPos(level, valkyrienskies$vec)) != null) {
final Quaterniond rotation = new Quaterniond().identity();
final Quaterniond yawQuat = new Quaterniond().rotateY(valkyrienskies$angles.y);
final Quaterniond pitchQuat = new Quaterniond().rotateX(valkyrienskies$angles.x);
Expand Down

0 comments on commit ae1bd53

Please sign in to comment.