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:
EvilSeph 2013-12-20 15:33:06 -05:00
parent 330dbbf78c
commit 6d9a6fbb4b

View file

@ -1029,7 +1029,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
this.expTotal = this.newTotalExp; this.expTotal = this.newTotalExp;
this.exp = 0; this.exp = 0;
this.deathTicks = 0; this.deathTicks = 0;
this.removeAllEffects(); this.aP(); // Should be remapped: removeAllEffects should be remapped to this.
this.updateEffects = true; this.updateEffects = true;
this.activeContainer = this.defaultContainer; this.activeContainer = this.defaultContainer;
this.killer = null; this.killer = null;