mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 19:45:21 +01:00
Fix Paper packet limiter check on new versions
This commit is contained in:
parent
2a55025e99
commit
ce4f21b7d8
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user