3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +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.
Dieser Commit ist enthalten in:
EvilSeph 2013-12-20 15:33:06 -05:00
Ursprung 330dbbf78c
Commit 6d9a6fbb4b

Datei anzeigen

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