Skip to content

Commit

Permalink
Fix sharks attacking at slow rate
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Dec 22, 2019
1 parent e6847e0 commit 4927746
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public void onLivingUpdate() {
boolean isBoat = this.getAttackTarget() instanceof EntityPlayer && this.getAttackTarget().isRiding() && this.getAttackTarget().getRidingEntity() instanceof EntityBoat;
float grabDelay = isBoat ? 20F : 60F;
if(this.getPassengers().contains(this.getAttackTarget())) {
float time = 80F;
time *= 5F * (Math.random() + 1F);
float time = 30F;
time *= (Math.random() + 1F);
if(this.lastAttack + time < this.ticksExisted) {
this.attackEntityAsMob(this.getAttackTarget());
}
Expand Down

0 comments on commit 4927746

Please sign in to comment.