Fix Paper packet limiter check on new versions

This commit is contained in:
Nassim Jahnke 2022-08-25 13:03:40 +02:00
parent 2a55025e99
commit ce4f21b7d8
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -69,7 +69,7 @@ public final class PaperViaInjector {
} }
private static boolean hasPacketLimiter() { private static boolean hasPacketLimiter() {
return hasClass("com.destroystokyo.paper.PaperConfig$PacketLimit") || hasClass("io.papermc.paper.PaperConfig$PacketLimit"); return hasClass("com.destroystokyo.paper.PaperConfig$PacketLimit") || hasClass("io.papermc.paper.configuration.GlobalConfiguration$PacketLimiter");
} }
private static boolean hasClass(final String className) { private static boolean hasClass(final String className) {