From 628abb4239fb9ebb97d24bfa8388830fbd94bd3e Mon Sep 17 00:00:00 2001 From: Tueem Date: Fri, 20 Dec 2024 00:32:20 +0100 Subject: [PATCH] fix order and wording --- .../main/java/net/tomatentum/marinara/checks/AppliedCheck.java | 2 +- .../net/tomatentum/marinara/registry/InteractionRegistry.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/checks/AppliedCheck.java b/lib/src/main/java/net/tomatentum/marinara/checks/AppliedCheck.java index 6f7ec53..3cd0b83 100644 --- a/lib/src/main/java/net/tomatentum/marinara/checks/AppliedCheck.java +++ b/lib/src/main/java/net/tomatentum/marinara/checks/AppliedCheck.java @@ -38,7 +38,7 @@ public record AppliedCheck(InteractionCheck check, Annotation annotation) { Method method = ReflectionUtil.getMostSpecificMethod(methods, context.getClass(), annotation.annotationType()); method.setAccessible(true); try { - logger.debug("Executing pre check {} with context {}", check.getClass().getName(), context.toString()); + logger.debug("Executing post check {} with context {}", check.getClass().getName(), context.toString()); method.invoke(check, context, annotation); } catch (IllegalAccessException | InvocationTargetException | SecurityException e) { logger.fatal(e); 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 12d31e7..c771761 100644 --- a/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java +++ b/lib/src/main/java/net/tomatentum/marinara/registry/InteractionRegistry.java @@ -70,8 +70,8 @@ public class InteractionRegistry { logger.debug("Received {} interaction ", context); interactionMethods.forEach((m) -> { if (m.getType().equals(type) && m.canRun(context)) { - m.run(context); logger.info("Running {} interaction using {}\ncontext: {}", type, m.getMethod().toString(), context.toString()); + m.run(context); } }); }