Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Re-add old knockback method for plugins (#324)
Browse files Browse the repository at this point in the history
* Update EntityLiving.java

* Update EntityLiving.java
  • Loading branch information
Elier authored Jan 10, 2022
1 parent 57e8295 commit c901193
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,10 @@ public void die(DamageSource damagesource) {
}

protected void dropEquipment(boolean flag, int i) {}

public void a(Entity entity, float f, double d0, double d1) {
a(d0, d1, null);
}

public void a(double x, double z, DamageSource source) {
if (this.random.nextDouble() >= this.getAttributeInstance(GenericAttributes.c).getValue()) {
Expand Down

0 comments on commit c901193

Please sign in to comment.