add canRun check which i forgor
This commit is contained in:
parent
aefd8a51a0
commit
83a3efd4b8
@ -54,7 +54,7 @@ public class InteractionRegistry {
|
|||||||
public void handle(Object context) {
|
public void handle(Object context) {
|
||||||
interactionMethods.forEach((m) -> {
|
interactionMethods.forEach((m) -> {
|
||||||
InteractionType type = marinara.getWrapper().getInteractionType(context.getClass());
|
InteractionType type = marinara.getWrapper().getInteractionType(context.getClass());
|
||||||
if (m.getType().equals(type))
|
if (m.getType().equals(type) && m.canRun(context))
|
||||||
m.run(context);
|
m.run(context);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user