Migrate to GTNHLib config system (#29)

Co-authored-by: Nikolay S. <[email protected]>
This commit is contained in:
koolkrafter5andNikolay S. authored and GitHub committed 2026-03-15 22:51:30 +01:00
1 parent 82c33ae3c7
commit b537a26003
5 files changed
+90 -87

No files matched your search

+7 -2
View File
@@ -3,6 +3,8 @@ package com.gtnh.findit;
import java.util.ArrayList;
import java.util.List;
import com.gtnewhorizon.gtnhlib.config.ConfigException;
import com.gtnewhorizon.gtnhlib.config.ConfigurationManager;
import com.gtnh.findit.IStackFilter.IStackFilterProvider;
import com.gtnh.findit.handler.AdventureBackpackProvider;
import com.gtnh.findit.handler.BackpackProvider;
@@ -55,8 +57,11 @@ public class FindIt {
this.isGregTechLoaded = Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi");
this.isEnderIOLoaded = Loader.isModLoaded("EnderIO");
this.cooldownService = new SearchCooldownService();
FindItConfig.setup(event.getSuggestedConfigurationFile());
try {
ConfigurationManager.registerConfig(FindItConfig.class);
} catch (ConfigException e) {
throw new RuntimeException(e);
}
if (event.getSide() == Side.CLIENT) {
this.blockFindService = new ClientBlockFindService();