Fix an oversight in the TaskBus

This commit is contained in:
Aria 2023-05-08 15:59:32 -07:00
parent 47e114ba57
commit 7be51f52d6
2 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,7 @@ plugins {
id 'maven-publish'
}
version = "1.1.11"
version = "1.1.12"
group = "dev.zontreck"
archivesBaseName = "LibAC"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)

View file

@ -22,14 +22,14 @@ public class TaskBus extends Task
if(TaskBus.current == null)
{
current = tasks.get(0);
current.startTask();
TaskBus.current = tasks.get(0);
tasks.remove(0);
TaskBus.current.startTask();
}else {
if(current.isComplete())
if(TaskBus.current.isComplete())
{
current.stopTask();
current=null;
TaskBus.current.stopTask();
TaskBus.current=null;
}
}
// Don't care about a empty stack exception. We'll just queue this task check back up