Project-wide refactoring, link crash fixes
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user