Fix movement on 1.12/13

This commit is contained in:
fullwall 2022-01-09 22:09:55 +08:00
parent 83022b05ab
commit dad74a3279
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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);