3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 23:00:08 +01:00
Paper/nms-patches/EntityGuardian.patch

30 Zeilen
1.1 KiB
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/EntityGuardian.java
+++ b/net/minecraft/server/EntityGuardian.java
@@ -14,7 +14,7 @@
2015-02-26 23:41:06 +01:00
private EntityLiving bo;
private int bp;
private boolean bq;
2015-05-05 22:43:47 +02:00
- private PathfinderGoalRandomStroll goalRandomStroll;
+ public PathfinderGoalRandomStroll goalRandomStroll; // CraftBukkit - public
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();
2015-05-05 22:43:47 +02:00
this.getAttributeInstance(GenericAttributes.ATTACK_DAMAGE).setValue(6.0D);
this.getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).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);
}
}