Update development #5
6 arquivos alterados com 7 adições e 7 exclusões
Merge branch 'development' into temp
commit
0a4cedc853
|
|
@ -1,4 +1,4 @@
|
|||

|
||||
# AutoWhitelist
|
||||
More information at: https://modrinth.com/mod/autowhitelist
|
||||
Beta builds: https://ci.codemc.io/job/Awakened-Redstone/job/AutoWhitelist/
|
||||
Beta builds: https://ci.codemc.io/job/Awakened-Redstone/job/AutoWhitelist/
|
||||
|
|
@ -76,4 +76,4 @@ tasks.withType(JavaCompile) {
|
|||
|
||||
jar {
|
||||
from "LICENSE"
|
||||
}
|
||||
}
|
||||
|
|
@ -6,4 +6,4 @@ mod_version=beta-5.0.1
|
|||
maven_group=com.awakenedredstone
|
||||
archives_base_name=autowhitelist
|
||||
|
||||
fabric_version=0.46.2+1.18
|
||||
fabric_version=0.46.2+1.18
|
||||
2
gradle/wrapper/gradle-wrapper.properties
externo
2
gradle/wrapper/gradle-wrapper.properties
externo
|
|
@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
|||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
@ -29,7 +29,7 @@ public class Config {
|
|||
String json = reader.lines().collect(Collectors.joining("\n"));
|
||||
StringReader stringReader = new StringReader(json);
|
||||
|
||||
JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject();
|
||||
JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject();
|
||||
if (jsonObject.get("version") == null || jsonObject.get("version").getAsFloat() != configVersion) {
|
||||
|
||||
jsonObject.add("owners", new JsonArray());
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ public class Bot implements Runnable {
|
|||
} catch (LoginException e) {
|
||||
AutoWhitelist.LOGGER.error("Failed to start bot, please verify the token.");
|
||||
} catch (Exception e) {
|
||||
AutoWhitelist.LOG4J_LOGGER.error(e);
|
||||
}
|
||||
AutoWhitelist.LOG4J_LOGGER.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Referência em uma nova issue