change: getInteractionType check changed from class based to context based check
All checks were successful
github-mirror / push-github (push) Successful in 4s
Build / Gradle-Build (push) Successful in 16s
Test / Gradle-Test (push) Successful in 14s

This commit is contained in:
2025-02-17 09:15:54 +01:00
parent 9d88ca902d
commit b4af922ac2
3 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ public class InteractionRegistry {
}
public void handle(Object context) {
InteractionType type = marinara.getWrapper().getInteractionType(context.getClass());
InteractionType type = marinara.getWrapper().getInteractionType(context);
logger.debug("Received {} interaction ", context);
interactionMethods.forEach((m) -> {
if (m.getType().equals(type) && m.canRun(context)) {