Skip to content

Commit

Permalink
Fix player getting knockback to the wrong direction (NukkitX#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
joserobjr committed Feb 22, 2020
1 parent 3a945c7 commit 0c1a480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/entity/impl/EntityLiving.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public boolean attack(EntityDamageEvent source) {
}

double deltaX = this.x - damager.getX();
double deltaZ = this.z - damager.getY();
double deltaZ = this.z - damager.getZ();
this.knockBack(damager, source.getDamage(), deltaX, deltaZ, ((EntityDamageByEntityEvent) source).getKnockBack());
}

Expand Down

0 comments on commit 0c1a480

Please sign in to comment.