From db49a576946d58f7e7bcc41d716fd03b94459b63 Mon Sep 17 00:00:00 2001 From: h31ix Date: Sun, 28 Oct 2012 23:20:06 -0400 Subject: 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. --- src/main/java/net/minecraft/server/EntityPlayer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java index b306a238..923e0813 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -261,6 +261,9 @@ public class EntityPlayer extends EntityHuman implements ICrafting { } this.closeInventory(); + + // Update effects on player death + this.updateEffects = true; // CraftBukkit end } -- cgit v1.2.3