add Checks system #6

Merged
tueem merged 16 commits from feat/checks into dev 2024-12-05 07:51:37 +00:00
Showing only changes of commit 83a3efd4b8 - Show all commits

View File

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