13
0
geforkt von Mirrors/Paper
Paper/nms-patches/EntityGuardian.patch

30 Zeilen
1.2 KiB
Diff

2015-03-19 22:29:12 +01:00
--- /home/matt/mc-dev-private//net/minecraft/server/EntityGuardian.java 2015-03-19 21:25:54.134142162 +0000
+++ src/main/java/net/minecraft/server/EntityGuardian.java 2015-03-19 21:25:54.134142162 +0000
@@ -14,7 +14,7 @@
2015-02-26 23:41:06 +01:00
private EntityLiving bo;
private int bp;
private boolean bq;
- private PathfinderGoalRandomStroll br;
2015-03-19 22:29:12 +01:00
+ public PathfinderGoalRandomStroll br; // CraftBukkit - public, PAIL: Rename goalRandomStroll
public EntityGuardian(World world) {
super(world);
2015-02-26 23:41:06 +01:00
@@ -35,7 +35,7 @@
this.b = this.a = this.random.nextFloat();
}
2015-02-26 23:41:06 +01:00
- protected void initAttributes() {
+ public void initAttributes() { // CraftBukkit - public
super.initAttributes();
this.getAttributeInstance(GenericAttributes.e).setValue(6.0D);
this.getAttributeInstance(GenericAttributes.d).setValue(0.5D);
2015-02-26 23:41:06 +01:00
@@ -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);
}
}