Project-wide refactoring, link crash fixes

This commit is contained in:
Anuken
2018-01-24 16:48:07 -05:00
parent 257335ebaf
commit 8c39e05f58
60 changed files with 302 additions and 303 deletions

View File

@@ -17,10 +17,8 @@ import io.anuke.mindustry.net.Net;
import io.anuke.ucore.util.Strings;
import javax.swing.*;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.DateFormat;
@@ -71,16 +69,6 @@ public class DesktopLauncher {
public String format(int number){
return NumberFormat.getIntegerInstance().format(number);
}
@Override
public void openLink(String link){
try{
Desktop.getDesktop().browse(URI.create(link));
}catch(IOException e){
e.printStackTrace();
Vars.ui.showError("Error opening link.");
}
}
@Override
public void showError(String text){