Skip to content

Commit

Permalink
Fix HooksLoader searching in wrong location
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Apr 29, 2023
1 parent 68951cc commit 526e651
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import xyz.xenondevs.nova.NOVA
import xyz.xenondevs.nova.api.protection.ProtectionIntegration
import xyz.xenondevs.nova.data.resources.upload.AutoUploadManager
import xyz.xenondevs.nova.data.resources.upload.UploadService
import xyz.xenondevs.nova.initialize.InitFun
import xyz.xenondevs.nova.initialize.InitializationStage
import xyz.xenondevs.nova.initialize.InternalInit
import xyz.xenondevs.nova.integration.customitems.CustomItemService
import xyz.xenondevs.nova.integration.customitems.CustomItemServiceManager
import xyz.xenondevs.nova.integration.permission.PermissionIntegration
import xyz.xenondevs.nova.integration.permission.PermissionManager
import xyz.xenondevs.nova.integration.protection.ProtectionManager
import xyz.xenondevs.nova.initialize.InitFun
import xyz.xenondevs.nova.initialize.InitializationStage
import xyz.xenondevs.nova.initialize.InternalInit
import xyz.xenondevs.nova.util.data.JarUtils
import java.util.logging.Level
import kotlin.reflect.KClass
Expand All @@ -25,7 +25,7 @@ internal object HooksLoader {

@InitFun
private fun loadHooks() {
JarUtils.findAnnotatedClasses(NOVA.pluginFile, Hook::class, "xyz/xenondevs/nova/integration/impl/").forEach { (className, annotation) ->
JarUtils.findAnnotatedClasses(NOVA.pluginFile, Hook::class, "xyz/xenondevs/nova/hook/impl/").forEach { (className, annotation) ->
try {
val plugins = annotation["plugins"] as? List<String> ?: emptyList()
val unless = annotation["unless"] as? List<String> ?: emptyList()
Expand Down

0 comments on commit 526e651

Please sign in to comment.