mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 19:52:55 +01:00
Fix attributes not clearing on death. Fixes BUKKIT-5213
Due to an incorrect mapping of this method to a friendly name, we're unfortunately calling the wrong method within EntityPlayer.reset() to reset attributes. Instead of what we've mapped as "removeAllEffects", we should be calling EntityLiving.aP(). This mapping should be corrected in the next naming version.
This commit is contained in:
parent
330dbbf78c
commit
6d9a6fbb4b
1 changed files with 1 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|||
this.expTotal = this.newTotalExp;
|
||||
this.exp = 0;
|
||||
this.deathTicks = 0;
|
||||
this.removeAllEffects();
|
||||
this.aP(); // Should be remapped: removeAllEffects should be remapped to this.
|
||||
this.updateEffects = true;
|
||||
this.activeContainer = this.defaultContainer;
|
||||
this.killer = null;
|
||||
|
|
Loading…
Reference in a new issue