mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-06 08:38:30 +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() {
|
public void dispose() {
|
||||||
System.out.println("Goodbye !");
|
System.out.println("Goodbye !");
|
||||||
|
|
||||||
audioManagerThread.interrupt();
|
if (audioManagerThread != null) {
|
||||||
|
audioManagerThread.interrupt();
|
||||||
|
}
|
||||||
|
|
||||||
if (currentScreen != null) {
|
if (currentScreen != null) {
|
||||||
currentScreen.hide();
|
currentScreen.hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user