mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 16:49:10 +00:00
Fixed null server provider issue
This commit is contained in:
@@ -52,8 +52,6 @@ public class PublicServerExecuter extends ServerExecuter {
|
|||||||
|
|
||||||
final File destination = new File(Directories.getCachePath(),
|
final File destination = new File(Directories.getCachePath(),
|
||||||
serverProviderInfo.getCRC32() + ".jar");
|
serverProviderInfo.getCRC32() + ".jar");
|
||||||
|
|
||||||
|
|
||||||
final String jarUrl = Configuration.GET_SERVER_PROVIDER
|
final String jarUrl = Configuration.GET_SERVER_PROVIDER
|
||||||
+ this.serverID;
|
+ this.serverID;
|
||||||
|
|
||||||
@@ -96,7 +94,7 @@ public class PublicServerExecuter extends ServerExecuter {
|
|||||||
final Constructor<?> con = providerClass.getConstructor();
|
final Constructor<?> con = providerClass.getConstructor();
|
||||||
final ServerProvider serverProvider = (ServerProvider) con
|
final ServerProvider serverProvider = (ServerProvider) con
|
||||||
.newInstance();
|
.newInstance();
|
||||||
Context.getInstance().setProviderInfo(serverProviderInfo);
|
Context.getInstance(serverProvider).setProviderInfo(serverProviderInfo);
|
||||||
super.finalize(serverProvider, this.serverName);
|
super.finalize(serverProvider, this.serverName);
|
||||||
} catch (NoClassDefFoundError ignored) {
|
} catch (NoClassDefFoundError ignored) {
|
||||||
UILog.log(
|
UILog.log(
|
||||||
|
|||||||
Reference in New Issue
Block a user