Skip to content

Commit

Permalink
Merge pull request AlexModGuy#1150 from Flatgub/froststalker_fix
Browse files Browse the repository at this point in the history
FroststalkerAIMelee Fix for AlexModGuy#1140 and probably AlexModGuy#1146
  • Loading branch information
AlexModGuy authored Jun 29, 2022
2 parents f09584e + 322aaa6 commit 05af1bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void start() {
public void tick() {
froststalker.setBipedal(true);
froststalker.standFor(20);
target = froststalker.getTarget();
boolean flag = false;
if ((hasJumped || froststalker.isTackling()) && froststalker.isOnGround()) {
hasJumped = false;
Expand Down Expand Up @@ -113,7 +114,7 @@ public void tick() {
}
}
}
if (!froststalker.isOnGround()) {
if (target != null && !froststalker.isOnGround()) {
froststalker.lookAt(target, 180F, 10F);
froststalker.yBodyRot = froststalker.getYRot();
}
Expand Down

0 comments on commit 05af1bd

Please sign in to comment.