diff --git a/gradle.properties b/gradle.properties index b9f2f83602..ac09a3fbbb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m -archash=1241a004a3d694f75263b9d78d359a7c260dc16b +archash=9e22aca9d446e07d5b89e41415ad2d42ad6b249e diff --git a/ios/src/mindustry/ios/IOSLauncher.java b/ios/src/mindustry/ios/IOSLauncher.java index edf279d912..32041b97cd 100644 --- a/ios/src/mindustry/ios/IOSLauncher.java +++ b/ios/src/mindustry/ios/IOSLauncher.java @@ -27,6 +27,8 @@ import java.util.zip.*; import static mindustry.Vars.*; import static org.robovm.apple.foundation.NSPathUtilities.getDocumentsDirectory; +//warnings for deprecated functions related to multi-scene windows are not applicable here +@SuppressWarnings("deprecation") public class IOSLauncher extends IOSApplication.Delegate{ private boolean forced; @@ -198,19 +200,15 @@ public class IOSLauncher extends IOSApplication.Delegate{ openURL(((NSURL)options.get(UIApplicationLaunchOptions.Keys.URL()))); } - Events.on(ClientLoadEvent.class, e -> { - Core.app.post(() -> Core.app.post(() -> { - Core.scene.table(Styles.black9, t -> { - t.visible(() -> { - if(!forced) return false; - t.toFront(); - UIInterfaceOrientation o = UIApplication.getSharedApplication().getStatusBarOrientation(); - return forced && (o == UIInterfaceOrientation.Portrait || o == UIInterfaceOrientation.PortraitUpsideDown); - }); - t.add("Rotate the device to landscape orientation to use the editor.").wrap().grow(); - }); - })); - }); + Events.on(ClientLoadEvent.class, e -> Core.app.post(() -> Core.app.post(() -> Core.scene.table(Styles.black9, t -> { + t.visible(() -> { + if(!forced) return false; + t.toFront(); + UIInterfaceOrientation o = UIApplication.getSharedApplication().getStatusBarOrientation(); + return forced && (o == UIInterfaceOrientation.Portrait || o == UIInterfaceOrientation.PortraitUpsideDown); + }); + t.add("Rotate the device to landscape orientation to use the editor.").wrap().grow(); + })))); return b; }