diff --git a/src/main/java/org/cadixdev/mercury/mixin/annotation/AccessorType.java b/src/main/java/org/cadixdev/mercury/mixin/annotation/AccessorType.java index 2601c8f..3277bd6 100644 --- a/src/main/java/org/cadixdev/mercury/mixin/annotation/AccessorType.java +++ b/src/main/java/org/cadixdev/mercury/mixin/annotation/AccessorType.java @@ -87,7 +87,7 @@ public boolean isExpectedPrefix(final String prefix) { public static AccessorType get(final boolean isInvoker, final IMethodBinding binding, final MethodSignature signature, final AccessorData data) { // @Invoker if (isInvoker) { - if (Modifier.isStatic(binding.getModifiers())) { + if (Modifier.isStatic(binding.getModifiers()) && (data.getTarget().equals("") || data.getTarget().contains("/") || data.getTarget().contains("."))) { // Okay, this should be more indepth - but its enough for now return OBJECT_FACTORY; }