Skip to content

Commit

Permalink
fixed angler fix spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
baguchi committed Nov 16, 2023
1 parent 7270614 commit 7bdf9d0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,11 @@ public boolean hurt(Entity entity, int i, DamageType type) {
}
return false;
}

protected void attackEntity(Entity entity, float distance) {
if (this.attackTime <= 0 && distance < 1.5f && entity.bb.maxY > this.bb.minY && entity.bb.minY < this.bb.maxY) {
this.attackTime = 20;
entity.hurt(this, 1, DamageType.COMBAT);
}
}
}

0 comments on commit 7bdf9d0

Please sign in to comment.