Elaborate on warning

This commit is contained in:
Minecon724 2025-01-03 14:12:24 +01:00
parent a48fe97b4d
commit 9bcdcc17ba
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -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 modifiers.put(type, new Vector(mod, mod >= 1 ? mod : 1, mod)); // don't touch vertical
}); });
if (!modifiers.isEmpty()) if (!modifiers.isEmpty()) {
registerEvents(this); 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 @EventHandler