Skip to content

Commit 7c988c7

Browse files
authored
Merge pull request #237 from bindglam/fix/mount-controller-strafe
fix: mount controller strafing
2 parents 36e630e + 8967bbd commit 7c988c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/src/main/java/kr/toxicity/model/api/mount/MountControllers.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public boolean canControl() {
5252
@NotNull
5353
@Override
5454
public Vector3f move(@NotNull Player player, @NotNull LivingEntity entity, @NotNull Vector3f input, @NotNull Vector3f travelVector) {
55+
input.normalize();
5556
input.y = 0;
5657
input.x = input.x * 0.5F;
5758
if (input.z <= 0.0F) {
@@ -67,6 +68,7 @@ public Vector3f move(@NotNull Player player, @NotNull LivingEntity entity, @NotN
6768
@NotNull
6869
@Override
6970
public Vector3f move(@NotNull Player player, @NotNull LivingEntity entity, @NotNull Vector3f input, @NotNull Vector3f travelVector) {
71+
input.normalize();
7072
input.x = input.x * 0.5F;
7173
if (input.z <= 0.0F) {
7274
input.z *= 0.25F;

0 commit comments

Comments
 (0)