mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-30 20:39:15 +00:00
20 lines
1.0 KiB
Diff
20 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Wed, 19 Jul 2023 19:59:58 +0800
|
|
Subject: [PATCH] Disable packet limit
|
|
|
|
|
|
diff --git a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java
|
|
index 17e23ca4dd2bbfba49ea00aa2b719a95feb931be..d4e2e93689e831e56e7500d6d14f1704e0c66874 100644
|
|
--- a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java
|
|
+++ b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java
|
|
@@ -275,7 +275,7 @@ public class GlobalConfiguration extends ConfigurationPart {
|
|
}
|
|
|
|
public boolean isEnabled() {
|
|
- return this.interval > 0.0 && this.maxPacketRate > 0.0;
|
|
+ return !org.leavesmc.leaves.LeavesConfig.modify.disablePacketLimit && (this.interval > 0.0 && this.maxPacketRate > 0.0); // Leaves - disable packet limit
|
|
}
|
|
|
|
public enum ViolateAction {
|