From 0bdb81838d658afd34ca8f50408fd4454545fab7 Mon Sep 17 00:00:00 2001 From: Sebastian Erives Date: Sun, 27 Oct 2024 22:37:51 -0600 Subject: [PATCH] Correctly handle the continue on blacklistLoop --- .../github/deltacv/eocvsim/plugin/loader/PluginClassLoader.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EOCV-Sim/src/main/java/io/github/deltacv/eocvsim/plugin/loader/PluginClassLoader.kt b/EOCV-Sim/src/main/java/io/github/deltacv/eocvsim/plugin/loader/PluginClassLoader.kt index f22231a..452de95 100644 --- a/EOCV-Sim/src/main/java/io/github/deltacv/eocvsim/plugin/loader/PluginClassLoader.kt +++ b/EOCV-Sim/src/main/java/io/github/deltacv/eocvsim/plugin/loader/PluginClassLoader.kt @@ -92,10 +92,11 @@ class PluginClassLoader( */ fun loadClassStrict(name: String): Class<*> { if(!pluginContextProvider().hasSuperAccess) { + blacklistLoop@ for (blacklistedPackage in dynamicLoadingPackageBlacklist) { for(whiteListedPackage in dynamicLoadingPackageWhitelist) { // If the class is whitelisted, skip the blacklist check - if(name.contains(whiteListedPackage)) continue + if(name.contains(whiteListedPackage)) continue@blacklistLoop } if (name.contains(blacklistedPackage)) {