mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Update PotionEffects on player death. Fixes BUKKIT-2673
On player death player PotionEffects need to be updated so that a player's invisibility and other effects are removed, otherwise they will persist after a respawn. This is a carry-over from our use of persistent player entities.
This commit is contained in:
parent
0fb806c566
commit
db49a57694
1 changed files with 3 additions and 0 deletions
|
@ -261,6 +261,9 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
|||
}
|
||||
|
||||
this.closeInventory();
|
||||
|
||||
// Update effects on player death
|
||||
this.updateEffects = true;
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue