[BUGFIX] Resets out and err to solve issue #37

This commit is contained in:
JKetelaar
2015-12-31 19:03:07 +01:00
parent 9806e4d7ff
commit 99e40ac788
4 changed files with 11 additions and 7 deletions
@@ -56,6 +56,7 @@ public class PublicServerExecuter extends ServerExecuter {
serverProviderInfo.getCRC32() + ".jar");
final String jarUrl = Configuration.GET_SERVER_PROVIDER
+ this.serverName;
System.out.println(jarUrl);
Core.verbose("Downloading: " + jarUrl + " ...");
@@ -5,6 +5,8 @@ import org.parabot.core.parsers.randoms.RandomParser;
import org.parabot.core.ui.components.PaintComponent;
import org.parabot.environment.servers.ServerProvider;
import java.io.PrintStream;
/**
*
* Executes a server provider
@@ -21,12 +23,6 @@ public abstract class ServerExecuter {
@Override
public void run() {
try {
try{
org.parabot.environment.api.utils.WindowsPreferences.userRoot().remove("Software\\JavaSoft\\Prefs");
}catch (Exception e){
// Ikov likes to creates preference keys, doesn't it?
}
Context context = Context.getInstance(provider);
context.load();
PaintComponent.getInstance().startPainting(context);