From 5b702d6b9c8b0c701f8e06ba5fdae3ade4bc63aa Mon Sep 17 00:00:00 2001 From: mrapple Date: Tue, 1 Oct 2013 21:15:29 -0500 Subject: [PATCH] Add a fix for clearing potion effects on respawn --- ...ion-effects-on-respawn-missed-rename.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CraftBukkit-Patches/0073-Fix-clearing-potion-effects-on-respawn-missed-rename.patch diff --git a/CraftBukkit-Patches/0073-Fix-clearing-potion-effects-on-respawn-missed-rename.patch b/CraftBukkit-Patches/0073-Fix-clearing-potion-effects-on-respawn-missed-rename.patch new file mode 100644 index 0000000000..e13c5dfe0f --- /dev/null +++ b/CraftBukkit-Patches/0073-Fix-clearing-potion-effects-on-respawn-missed-rename.patch @@ -0,0 +1,22 @@ +From 1bae811fba2af5397d2702480779e29089ff37a9 Mon Sep 17 00:00:00 2001 +From: mrapple +Date: Tue, 1 Oct 2013 21:10:50 -0500 +Subject: [PATCH] Fix clearing potion effects on respawn -- missed rename + + +diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java +index fd49c80..54dad5c 100644 +--- a/src/main/java/net/minecraft/server/EntityPlayer.java ++++ b/src/main/java/net/minecraft/server/EntityPlayer.java +@@ -968,7 +968,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting { + this.expTotal = this.newTotalExp; + this.exp = 0; + this.deathTicks = 0; +- this.aJ(); // Should be removeAllEffects. ++ this.aK(); // Should be removeAllEffects. + this.updateEffects = true; + this.activeContainer = this.defaultContainer; + this.killer = null; +-- +1.7.12.4 (Apple Git-37) +