From 9fa497cd5568f2c232ef19f6c085dcca1a971ce0 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 12 Dec 2014 10:56:20 +1100 Subject: Add implementation of the elder Guardian API --- nms-patches/EntityAgeable.patch | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'nms-patches/EntityAgeable.patch') 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; -- cgit v1.2.3