summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-04-26 15:56:06 +1000
committermd_5 <git@md-5.net>2017-04-26 15:56:06 +1000
commit2453830549e6f1cfe33dc20d5ac6d96a043bdddf (patch)
treee646067953560342faf52feba824944f9674c6fc
parent28d993ccec1174fc5ed397edca02c50e75213865 (diff)
downloadcraftbukkit-2453830549e6f1cfe33dc20d5ac6d96a043bdddf.tar
craftbukkit-2453830549e6f1cfe33dc20d5ac6d96a043bdddf.tar.gz
craftbukkit-2453830549e6f1cfe33dc20d5ac6d96a043bdddf.tar.lz
craftbukkit-2453830549e6f1cfe33dc20d5ac6d96a043bdddf.tar.xz
craftbukkit-2453830549e6f1cfe33dc20d5ac6d96a043bdddf.zip
Reset player arrow count on death
-rw-r--r--nms-patches/EntityPlayer.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/nms-patches/EntityPlayer.patch b/nms-patches/EntityPlayer.patch
index 7368774b..17c735d2 100644
--- a/nms-patches/EntityPlayer.patch
+++ b/nms-patches/EntityPlayer.patch
@@ -517,7 +517,7 @@
}
public void a(EnumHand enumhand) {
-@@ -975,11 +1182,150 @@
+@@ -975,11 +1182,151 @@
}
public void M() {
@@ -649,6 +649,7 @@
+ this.expTotal = this.newTotalExp;
+ this.exp = 0;
+ this.deathTicks = 0;
++ this.f(0); // PAIL: setArrowCount
+ this.removeAllEffects();
+ this.updateEffects = true;
+ this.activeContainer = this.defaultContainer;