diff --git a/.idea/inspectionProfiles/VidTu_Ksyxis.xml b/.idea/inspectionProfiles/VidTu_Ksyxis.xml
index d3997e5..70e1fe9 100644
--- a/.idea/inspectionProfiles/VidTu_Ksyxis.xml
+++ b/.idea/inspectionProfiles/VidTu_Ksyxis.xml
@@ -1079,7 +1079,6 @@
-
diff --git a/src/main/java/ru/vidtu/ksyxis/KsyxisPlugin.java b/src/main/java/ru/vidtu/ksyxis/KsyxisPlugin.java
index 116c0fd..ec40503 100644
--- a/src/main/java/ru/vidtu/ksyxis/KsyxisPlugin.java
+++ b/src/main/java/ru/vidtu/ksyxis/KsyxisPlugin.java
@@ -66,10 +66,16 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
try {
// Only apply if node exists.
ClassNode node = MixinService.getService().getBytecodeProvider().getClassNode(targetClassName);
- return node != null;
+ if (node != null) {
+ // Found - apply.
+ LOGGER.debug("Ksyxis: Applying {} to {}, class node does exist.", new Object[]{mixinClassName, targetClassName}); // <- Array for compat with log4j 2.0-beta.9.
+ return true;
+ }
+ LOGGER.debug("Ksyxis: Not applying {} to {}, class node is null.", new Object[]{mixinClassName, targetClassName}); // <- Array for compat with log4j 2.0-beta.9.
+ return false;
} catch (ClassNotFoundException e) {
// Not found - don't apply.
- LOGGER.debug("Ksyxis: Not applying {} to {}, class not found.", new Object[]{mixinClassName, targetClassName, e}); // <- Array for compat with log4j 2.0-beta.9.
+ LOGGER.debug("Ksyxis: Not applying {} to {}, class node was not found.", new Object[]{mixinClassName, targetClassName, e}); // <- Array for compat with log4j 2.0-beta.9.
return false;
} catch (Throwable t) {
// Try my lucky day, apply anyway.