Elaborate on warning
This commit is contained in:
parent
a48fe97b4d
commit
9bcdcc17ba
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue