mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-12 14:51:51 +09:00
fix: closing the game when no module is loaded would crash it
This commit is contained in:
@@ -916,7 +916,9 @@ public class App implements ApplicationListener {
|
||||
public void dispose() {
|
||||
System.out.println("Goodbye !");
|
||||
|
||||
audioManagerThread.interrupt();
|
||||
if (audioManagerThread != null) {
|
||||
audioManagerThread.interrupt();
|
||||
}
|
||||
|
||||
if (currentScreen != null) {
|
||||
currentScreen.hide();
|
||||
|
||||
Reference in New Issue
Block a user