add canRun check which i forgor

This commit is contained in:
tueem 2024-12-02 21:19:58 +01:00
parent aefd8a51a0
commit 83a3efd4b8
Signed by: tueem
GPG Key ID: 65C8667EC17A88FB

@ -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);
});
}