Changed it so when failing to retrieve mappings for the server the plugin doesn't fail to load

This commit is contained in:
OmerBenGera 2022-09-03 09:33:46 +03:00
parent 67af75f37a
commit 0094475513
2 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,7 @@ dependencies {
implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest'
implementation 'com.bgsoftware.common.config:CommentedConfiguration:1.0.3'
implementation 'com.bgsoftware.common.mappings:MappingsChecker:1.0.0'
implementation 'com.bgsoftware.common.mappings:MappingsChecker:1.0.1'
implementation 'com.bgsoftware.common.remaps:RemapsChecker:1.0.0'
// Spigot jars

View File

@ -99,7 +99,10 @@ public final class WildLoadersPlugin extends JavaPlugin implements WildLoaders {
String mappingVersionHash = nmsAdapter.getMappingsHash();
if (mappingVersionHash != null && !MappingsChecker.checkMappings(mappingVersionHash, version)) {
if (mappingVersionHash != null && !MappingsChecker.checkMappings(mappingVersionHash, version, error -> {
log("&cFailed to retrieve allowed mappings for your server, skipping...");
return true;
})) {
log("WildStacker does not support your version mappings... Please contact @Ome_R");
log("Your mappings version: " + mappingVersionHash);
return false;