Fix an oversight in the TaskBus
This commit is contained in:
parent
47e114ba57
commit
7be51f52d6
2 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ plugins {
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "1.1.11"
|
version = "1.1.12"
|
||||||
group = "dev.zontreck"
|
group = "dev.zontreck"
|
||||||
archivesBaseName = "LibAC"
|
archivesBaseName = "LibAC"
|
||||||
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
|
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
|
||||||
|
|
|
@ -22,14 +22,14 @@ public class TaskBus extends Task
|
||||||
|
|
||||||
if(TaskBus.current == null)
|
if(TaskBus.current == null)
|
||||||
{
|
{
|
||||||
current = tasks.get(0);
|
TaskBus.current = tasks.get(0);
|
||||||
|
tasks.remove(0);
|
||||||
current.startTask();
|
TaskBus.current.startTask();
|
||||||
}else {
|
}else {
|
||||||
if(current.isComplete())
|
if(TaskBus.current.isComplete())
|
||||||
{
|
{
|
||||||
current.stopTask();
|
TaskBus.current.stopTask();
|
||||||
current=null;
|
TaskBus.current=null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Don't care about a empty stack exception. We'll just queue this task check back up
|
// Don't care about a empty stack exception. We'll just queue this task check back up
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue