From 9bcdcc17ba5afcca6fc5456915f8d329b4572d82 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 3 Jan 2025 14:12:24 +0100 Subject: [PATCH] Elaborate on warning --- .../java/eu/m724/tweaks/knockback/KnockbackModule.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/m724/tweaks/knockback/KnockbackModule.java b/src/main/java/eu/m724/tweaks/knockback/KnockbackModule.java index 6b56ffb..6fe128b 100644 --- a/src/main/java/eu/m724/tweaks/knockback/KnockbackModule.java +++ b/src/main/java/eu/m724/tweaks/knockback/KnockbackModule.java @@ -49,8 +49,14 @@ public class KnockbackModule extends TweaksModule implements Listener { modifiers.put(type, new Vector(mod, mod >= 1 ? mod : 1, mod)); // don't touch vertical }); - if (!modifiers.isEmpty()) + if (!modifiers.isEmpty()) { registerEvents(this); + + try { + Class.forName("com.destroystokyo.paper.event.entity.EntityKnockbackByEntityEvent"); + DebugLogger.warning("Ignore that. Server performance will NOT be affected."); + } catch (ClassNotFoundException ignored) { } + } } @EventHandler