mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-12-22 16:48:27 +01:00
Changed it so when failing to retrieve mappings for the server the plugin doesn't fail to load
This commit is contained in:
parent
67af75f37a
commit
0094475513
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user