mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
[CLEANUP] Formatted code
This commit is contained in:
@@ -36,10 +36,9 @@ public class PublicServerExecuter extends ServerExecuter {
|
||||
}
|
||||
|
||||
};
|
||||
private String serverName;
|
||||
|
||||
private PBLocalPreferences settings;
|
||||
private final String cacheVersionKey = "cachedProviderVersion";
|
||||
private String serverName;
|
||||
private PBLocalPreferences settings;
|
||||
|
||||
public PublicServerExecuter(final String serverName) {
|
||||
this.serverName = serverName;
|
||||
@@ -58,14 +57,14 @@ public class PublicServerExecuter extends ServerExecuter {
|
||||
Core.verbose("Downloading: " + jarUrl + " ...");
|
||||
|
||||
String providerVersion = serverProviderInfo.getProviderVersion();
|
||||
if(providerVersion == null) {
|
||||
if (providerVersion == null) {
|
||||
providerVersion = "error";
|
||||
}
|
||||
|
||||
settings = new PBLocalPreferences(serverProviderInfo.getClientCRC32()+".json");
|
||||
if(settings.getSetting(cacheVersionKey) != null) {
|
||||
settings = new PBLocalPreferences(serverProviderInfo.getClientCRC32() + ".json");
|
||||
if (settings.getSetting(cacheVersionKey) != null) {
|
||||
Core.verbose(String.format("Latest provider version: %s, local provider version: %s", settings.getSetting(cacheVersionKey), providerVersion));
|
||||
if(!settings.getSetting(cacheVersionKey).equals(providerVersion)) {
|
||||
if (!settings.getSetting(cacheVersionKey).equals(providerVersion)) {
|
||||
Core.verbose("Local provider outdated, clearing cache.");
|
||||
Directories.clearCache();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user