mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 22:01:52 +09:00
making sure unused screen be disposed, and not breaking the app
This commit is contained in:
@@ -478,6 +478,7 @@ public class AppLoader implements ApplicationListener {
|
||||
|
||||
if (this.screen != null) {
|
||||
this.screen.hide();
|
||||
this.screen.dispose();
|
||||
}
|
||||
this.screen = screen;
|
||||
if (this.screen != null) {
|
||||
|
||||
Reference in New Issue
Block a user