Skip to content

Commit

Permalink
fix-fake-player-xp-not-resetting-on-death
Browse files Browse the repository at this point in the history
* remove XP on bot death
* fixes gnembon#1797
  • Loading branch information
silnarm committed Aug 12, 2023
1 parent 3493e2c commit 86ce206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/carpet/patches/EntityPlayerMPFake.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public void die(DamageSource cause)
shakeOff();
super.die(cause);
setHealth(20);
giveExperienceLevels(-(experienceLevel + 1));
this.foodData = new FoodData();
kill(this.getCombatTracker().getDeathMessage());
}
Expand Down

0 comments on commit 86ce206

Please sign in to comment.