From dad74a32793eb32c8c5b59ded836d94acc662316 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 9 Jan 2022 22:09:55 +0800 Subject: [PATCH] Fix movement on 1.12/13 --- .../net/citizensnpcs/nms/v1_12_R1/entity/EntityHumanNPC.java | 3 +-- .../net/citizensnpcs/nms/v1_13_R2/entity/EntityHumanNPC.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/v1_12_R1/src/main/java/net/citizensnpcs/nms/v1_12_R1/entity/EntityHumanNPC.java b/v1_12_R1/src/main/java/net/citizensnpcs/nms/v1_12_R1/entity/EntityHumanNPC.java index e2bc7d7be..fc82255b4 100644 --- a/v1_12_R1/src/main/java/net/citizensnpcs/nms/v1_12_R1/entity/EntityHumanNPC.java +++ b/v1_12_R1/src/main/java/net/citizensnpcs/nms/v1_12_R1/entity/EntityHumanNPC.java @@ -355,9 +355,8 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable } } - private void moveWithFallDamage(double mx, double my, double mz) { + private void moveWithFallDamage(float mx, float my, float mz) { double y = this.locY; - a(mx, my, mz); if (!npc.isProtected()) { a(this.locY - y, onGround); diff --git a/v1_13_R2/src/main/java/net/citizensnpcs/nms/v1_13_R2/entity/EntityHumanNPC.java b/v1_13_R2/src/main/java/net/citizensnpcs/nms/v1_13_R2/entity/EntityHumanNPC.java index a6f3b2e9a..ba371c7a9 100644 --- a/v1_13_R2/src/main/java/net/citizensnpcs/nms/v1_13_R2/entity/EntityHumanNPC.java +++ b/v1_13_R2/src/main/java/net/citizensnpcs/nms/v1_13_R2/entity/EntityHumanNPC.java @@ -329,7 +329,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable } } - private void moveWithFallDamage(double mx, double my, double mz) { + private void moveWithFallDamage(float mx, float my, float mz) { double y = this.locY; a(mx, my, mz);