This commit is contained in:
Anuken
2019-11-07 17:16:09 -05:00
parent d1196f8e85
commit d05f56c5b1
3 changed files with 13 additions and 2 deletions

View File

@ -11,6 +11,7 @@ public class Host{
public final int version;
public final String versionType;
public final Gamemode mode;
public int ping;
public Host(String name, String address, String mapname, int wave, int players, int version, String versionType, Gamemode mode, int playerLimit){
this.name = name;

View File

@ -10,7 +10,6 @@ public class LiquidJunction extends LiquidBlock{
public LiquidJunction(String name){
super(name);
hasLiquids = true;
}
@Override

View File

@ -58,7 +58,18 @@ public class IOSLauncher extends IOSApplication.Delegate{
if(documentURLs.size() < 1) return;
cont.dismissViewController(true, () -> {});
controller.importDocument(documentURLs.get(0), new NSURL(getDocumentsDirectory() + "/document"), UIDocumentBrowserImportMode.Copy, (url, error) -> cons.get(Core.files.absolute(url.getPath())));
try{
controller.importDocument(documentURLs.get(0), new NSURL(getDocumentsDirectory() + "/document"), UIDocumentBrowserImportMode.Copy, (url, error) -> {
try{
cons.get(Core.files.absolute(url.getPath()));
}catch(Throwable t){
ui.showException(t);
}
});
}catch(Throwable t){
ui.showException(t);
}
}
@Override