Adds support to 1.21.1

This commit is contained in:
OmerBenGera 2024-08-21 11:51:51 +03:00
parent eab35a6863
commit 8e97c86174
3 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ java {
group 'NMS:v1_21'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.21-R0.1-SNAPSHOT")
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.21.1-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly rootProject
}

View File

@ -69,7 +69,7 @@ dependencies {
implementation 'com.bgsoftware.common.updater:Updater:b1'
implementation 'com.bgsoftware.common.config:CommentedConfiguration:b1'
implementation 'com.bgsoftware.common.dependencies:DependenciesManager:b2'
implementation 'com.bgsoftware.common.nmsloader:NMSLoader:b5'
implementation 'com.bgsoftware.common.nmsloader:NMSLoader:b7'
implementation 'org.bstats:bstats-bukkit:3.0.0'

View File

@ -4,6 +4,7 @@ import com.bgsoftware.common.dependencies.DependenciesManager;
import com.bgsoftware.common.nmsloader.INMSLoader;
import com.bgsoftware.common.nmsloader.NMSHandlersFactory;
import com.bgsoftware.common.nmsloader.NMSLoadException;
import com.bgsoftware.common.nmsloader.config.NMSConfiguration;
import com.bgsoftware.common.updater.Updater;
import com.bgsoftware.wildloaders.api.WildLoaders;
import com.bgsoftware.wildloaders.api.WildLoadersAPI;
@ -101,7 +102,7 @@ public final class WildLoadersPlugin extends JavaPlugin implements WildLoaders {
private boolean loadNMSAdapter() {
try {
INMSLoader nmsLoader = NMSHandlersFactory.createNMSLoader(this);
INMSLoader nmsLoader = NMSHandlersFactory.createNMSLoader(this, NMSConfiguration.forPlugin(this));
this.nmsAdapter = nmsLoader.loadNMSHandler(NMSAdapter.class);
return true;