Skip to content

Commit

Permalink
Fixed altoclef crashing if quitting the world while the task is running.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvionKirito committed Apr 4, 2023
1 parent 7414776 commit 35251c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/adris/altoclef/tasksystem/TaskRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public TaskRunner(AltoClef mod) {
}

public void tick() {
if (!_active) return;
if (!_active || !AltoClef.inGame()) return;
// Get highest priority chain and run
TaskChain maxChain = null;
float maxPriority = Float.NEGATIVE_INFINITY;
Expand Down

0 comments on commit 35251c4

Please sign in to comment.