From 3a4da158dbe0d9294c660f29f62066f0761e8d94 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 5 Sep 2023 20:03:31 +0100 Subject: [PATCH] Fixed the portal spell's effect not really lining up with its orientation --- .../unicopia/ability/magic/spell/effect/PortalSpell.java | 2 +- .../minelittlepony/unicopia/client/particle/DiskParticle.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java index 921cc32b..1b00e89b 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/PortalSpell.java @@ -75,7 +75,7 @@ public class PortalSpell extends AbstractSpell implements PlaceableSpell.Placeme teleportationTarget.getTarget().ifPresentOrElse(target -> { particleEffect.update(getUuid(), source, spawner -> { - spawner.addParticle(new SphereParticleEffect(UParticles.DISK, getType().getColor(), 0.8F, 1.8F, new Vec3d(pitch, yaw, 0)), source.getOriginVector(), Vec3d.ZERO); + spawner.addParticle(new SphereParticleEffect(UParticles.DISK, getType().getColor(), 0.8F, 1.8F, new Vec3d(-pitch + 90, -yaw, 0)), source.getOriginVector(), Vec3d.ZERO); }); }, () -> { particleEffect.destroy(); diff --git a/src/main/java/com/minelittlepony/unicopia/client/particle/DiskParticle.java b/src/main/java/com/minelittlepony/unicopia/client/particle/DiskParticle.java index ec192449..5ea1cf39 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/particle/DiskParticle.java +++ b/src/main/java/com/minelittlepony/unicopia/client/particle/DiskParticle.java @@ -18,7 +18,7 @@ public class DiskParticle extends SphereParticle { super(effect, w, x, y, z, 0, 0, 0); rotation.mul(RotationAxis.POSITIVE_Y.rotationDegrees((float)effect.getOffset().y)); - rotation.mul(RotationAxis.POSITIVE_X.rotationDegrees(90 - (float)effect.getOffset().x)); + rotation.mul(RotationAxis.POSITIVE_X.rotationDegrees(180 - (float)effect.getOffset().x)); effect.setOffset(new Vec3d(0, 0.25, 0)); }