Add enchant squared wrapper.

Fix dependency not being load before enchantment registering.
This commit is contained in:
alexcrea 2024-06-16 13:46:27 +02:00
parent aad9974baf
commit aa1f3a446e
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
6 changed files with 65 additions and 11 deletions

View file

@ -20,10 +20,9 @@ object DependencyManager {
// Enchantment Squared dependency
enchantmentSquaredCompatibility =
if(pluginManager.isPluginEnabled("EnchantsSquared")) EnchantmentSquaredDependency()
if(pluginManager.isPluginEnabled("EnchantsSquared")) EnchantmentSquaredDependency(pluginManager.getPlugin("EnchantsSquared")!!)
else null
}
}