diff options
author | md_5 <git@md-5.net> | 2014-12-12 10:56:20 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2014-12-12 10:57:00 +1100 |
commit | 9fa497cd5568f2c232ef19f6c085dcca1a971ce0 (patch) | |
tree | 8f1c0681608788d8b31e7f54a793e8c07c91adeb /nms-patches/EntityAgeable.patch | |
parent | 3b1c7d708e8b96da537b7a68867773329056cd75 (diff) | |
download | craftbukkit-9fa497cd5568f2c232ef19f6c085dcca1a971ce0.tar craftbukkit-9fa497cd5568f2c232ef19f6c085dcca1a971ce0.tar.gz craftbukkit-9fa497cd5568f2c232ef19f6c085dcca1a971ce0.tar.lz craftbukkit-9fa497cd5568f2c232ef19f6c085dcca1a971ce0.tar.xz craftbukkit-9fa497cd5568f2c232ef19f6c085dcca1a971ce0.zip |
Add implementation of the elder Guardian API
Diffstat (limited to 'nms-patches/EntityAgeable.patch')
-rw-r--r-- | nms-patches/EntityAgeable.patch | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nms-patches/EntityAgeable.patch b/nms-patches/EntityAgeable.patch index b537248b..4abc0cf7 100644 --- a/nms-patches/EntityAgeable.patch +++ b/nms-patches/EntityAgeable.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/EntityAgeable.java 2014-11-28 17:43:43.061707436 +0000 -+++ src/main/java/net/minecraft/server/EntityAgeable.java 2014-11-28 17:38:22.000000000 +0000 +--- ../work/decompile-8eb82bde//net/minecraft/server/EntityAgeable.java Thu Dec 4 19:00:43 2014 ++++ src/main/java/net/minecraft/server/EntityAgeable.java Thu Dec 4 18:45:16 2014 @@ -7,6 +7,7 @@ protected int c; private float bk = -1.0F; @@ -46,3 +46,12 @@ if (this.c > 0) { if (this.c % 4 == 0) { this.world.addParticle(EnumParticle.VILLAGER_HAPPY, this.locX + (double) (this.random.nextFloat() * this.width * 2.0F) - (double) this.width, this.locY + 0.5D + (double) (this.random.nextFloat() * this.length), this.locZ + (double) (this.random.nextFloat() * this.width * 2.0F) - (double) this.width, 0.0D, 0.0D, 0.0D, new int[0]); +@@ -146,7 +149,7 @@ + this.a(flag ? 0.5F : 1.0F); + } + +- protected final void a(float f, float f1) { ++ public final void a(float f, float f1) { // CraftBukkit - protected to public + boolean flag = this.bk > 0.0F; + + this.bk = f; |