summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityGuardian.patch
blob: cd30ff32d7ee9b91074e4ecbcfb2b3e1f30d0716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- /home/matt/mc-dev-private//net/minecraft/server/EntityGuardian.java	2015-02-26 22:40:22.551608140 +0000
+++ src/main/java/net/minecraft/server/EntityGuardian.java	2015-02-26 22:40:22.551608140 +0000
@@ -14,7 +14,7 @@
     private EntityLiving bo;
     private int bp;
     private boolean bq;
-    private PathfinderGoalRandomStroll br;
+    public PathfinderGoalRandomStroll br; // CraftBukkit - public
 
     public EntityGuardian(World world) {
         super(world);
@@ -35,7 +35,7 @@
         this.b = this.a = this.random.nextFloat();
     }
 
-    protected void initAttributes() {
+    public void initAttributes() { // CraftBukkit - public
         super.initAttributes();
         this.getAttributeInstance(GenericAttributes.e).setValue(6.0D);
         this.getAttributeInstance(GenericAttributes.d).setValue(0.5D);
@@ -516,7 +516,7 @@
             return (entityliving instanceof EntityHuman || entityliving instanceof EntitySquid) && entityliving.h(this.a) > 9.0D;
         }
 
-        public boolean apply(Object object) {
+        public boolean apply(EntityLiving object) { // CraftBukkit - fix decompile error
             return this.a((EntityLiving) object);
         }
     }