diff --git a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java index 443ea39..d1640d6 100644 --- a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java +++ b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java @@ -54,7 +54,7 @@ public class InteractionRegistry { public void handle(Object context) { interactionMethods.forEach((m) -> { InteractionType type = marinara.getWrapper().getInteractionType(context.getClass()); - if (m.getType().equals(type)) + if (m.getType().equals(type) && m.canRun(context)) m.run(context); }); }