diff options
author | h31ix <effectsdude@gmail.com> | 2012-10-28 23:20:06 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-28 23:27:02 -0400 |
commit | db49a576946d58f7e7bcc41d716fd03b94459b63 (patch) | |
tree | 2414f91b5dff0d899fdd2c8c0eec19748e89d052 | |
parent | 0fb806c566594317df6b14ab13c825db88eba60f (diff) | |
download | craftbukkit-db49a576946d58f7e7bcc41d716fd03b94459b63.tar craftbukkit-db49a576946d58f7e7bcc41d716fd03b94459b63.tar.gz craftbukkit-db49a576946d58f7e7bcc41d716fd03b94459b63.tar.lz craftbukkit-db49a576946d58f7e7bcc41d716fd03b94459b63.tar.xz craftbukkit-db49a576946d58f7e7bcc41d716fd03b94459b63.zip |
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.
-rw-r--r-- | src/main/java/net/minecraft/server/EntityPlayer.java | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |