Skip to content

Commit 230dc05

Browse files
committed
Fix reach distance on certain hostiles
1 parent 79f4304 commit 230dc05

File tree

5 files changed

+0
-25
lines changed

5 files changed

+0
-25
lines changed

src/main/java/drzhark/mocreatures/entity/hostile/MoCEntityGolem.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -826,11 +826,6 @@ public boolean shouldContinueExecuting() {
826826
return super.shouldContinueExecuting();
827827
}
828828
}
829-
830-
@Override
831-
protected double getAttackReachSqr(EntityLivingBase attackTarget) {
832-
return 4.0F + attackTarget.width;
833-
}
834829
}
835830

836831
static class AIGolemTarget<T extends EntityLivingBase> extends EntityAINearestAttackableTarget<T> {

src/main/java/drzhark/mocreatures/entity/hostile/MoCEntityManticore.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ public boolean shouldContinueExecuting() {
251251
return super.shouldContinueExecuting();
252252
}
253253
}
254-
255-
@Override
256-
protected double getAttackReachSqr(EntityLivingBase attackTarget) {
257-
return 4.0F + attackTarget.width;
258-
}
259254
}
260255

261256
static class AIManticoreTarget<T extends EntityLivingBase> extends EntityAINearestAttackableTarget<T> {

src/main/java/drzhark/mocreatures/entity/hostile/MoCEntityMiniGolem.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,6 @@ public boolean shouldContinueExecuting() {
212212
return super.shouldContinueExecuting();
213213
}
214214
}
215-
216-
@Override
217-
protected double getAttackReachSqr(EntityLivingBase attackTarget) {
218-
return 4.0F + attackTarget.width;
219-
}
220215
}
221216

222217
static class AIGolemTarget<T extends EntityLivingBase> extends EntityAINearestAttackableTarget<T> {

src/main/java/drzhark/mocreatures/entity/hostile/MoCEntityOgre.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,6 @@ public boolean shouldContinueExecuting() {
232232
return super.shouldContinueExecuting();
233233
}
234234
}
235-
236-
@Override
237-
protected double getAttackReachSqr(EntityLivingBase attackTarget) {
238-
return 4.0F + attackTarget.width;
239-
}
240235
}
241236

242237
static class AIOgreTarget<T extends EntityLivingBase> extends EntityAINearestAttackableTarget<T> {

src/main/java/drzhark/mocreatures/entity/hostile/MoCEntityWWolf.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,6 @@ public boolean shouldContinueExecuting() {
234234
return super.shouldContinueExecuting();
235235
}
236236
}
237-
238-
@Override
239-
protected double getAttackReachSqr(EntityLivingBase attackTarget) {
240-
return 4.0F + attackTarget.width;
241-
}
242237
}
243238

244239
static class AIWolfTarget<T extends EntityLivingBase> extends EntityAINearestAttackableTarget<T> {

0 commit comments

Comments
 (0)