@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/entity/animal/armadillo/Armadillo.java
|
||||
+++ b/net/minecraft/world/entity/animal/armadillo/Armadillo.java
|
||||
@@ -131,14 +131,16 @@
|
||||
@@ -132,14 +132,16 @@
|
||||
@Override
|
||||
protected void customServerAiStep() {
|
||||
this.level().getProfiler().push("armadilloBrain");
|
||||
@@ -18,7 +18,7 @@
|
||||
this.gameEvent(GameEvent.ENTITY_PLACE);
|
||||
this.scuteTime = this.pickNextScuteDropTime();
|
||||
}
|
||||
@@ -285,8 +287,13 @@
|
||||
@@ -286,8 +288,13 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -34,15 +34,15 @@
|
||||
if (!this.isNoAi() && !this.isDeadOrDying()) {
|
||||
if (damagesource.getEntity() instanceof EntityLiving) {
|
||||
this.getBrain().setMemoryWithExpiry(MemoryModuleType.DANGER_DETECTED_RECENTLY, true, 80L);
|
||||
@@ -298,6 +305,7 @@
|
||||
@@ -299,6 +306,7 @@
|
||||
}
|
||||
|
||||
}
|
||||
+ return hurt; // CraftBukkit
|
||||
}
|
||||
|
||||
public boolean shouldPanic() {
|
||||
@@ -329,7 +337,9 @@
|
||||
@Override
|
||||
@@ -326,7 +334,9 @@
|
||||
if (this.isBaby()) {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user