Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Oct 9, 2024
1 parent e278a23 commit 151f9dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void onFinish(){
}

protected void moveTo(Position target, float circleLength, float smooth){
if(target == null || (target.getX() == -1f && target.getY() == -1f)) return;
if(target == null || (target.getX() == -1f && target.getY() == -1f) || player.unit() == null) return;

vec.set(target).sub(player.unit());

Expand Down

0 comments on commit 151f9dc

Please sign in to comment.