diff options
author | Shane Freeder <[email protected]> | 2020-08-25 13:27:56 +0100 |
---|---|---|
committer | Shane Freeder <[email protected]> | 2020-08-25 13:27:56 +0100 |
commit | cebec202f85651f7a700e2af55c926d55ff4fc30 (patch) | |
tree | 5bc7704725dfb3e5787dd87cf9e066b24d666884 | |
parent | a964eb39eb864b9d8294631d9f530f3304f63994 (diff) | |
download | Paper-cebec202f85651f7a700e2af55c926d55ff4fc30.tar.gz Paper-cebec202f85651f7a700e2af55c926d55ff4fc30.zip |
fix config option in last commit
-rw-r--r-- | Spigot-Server-Patches/0556-Buffer-joins-to-world.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Spigot-Server-Patches/0556-Buffer-joins-to-world.patch b/Spigot-Server-Patches/0556-Buffer-joins-to-world.patch index 50ccd5c8e8..084c4411c0 100644 --- a/Spigot-Server-Patches/0556-Buffer-joins-to-world.patch +++ b/Spigot-Server-Patches/0556-Buffer-joins-to-world.patch @@ -8,7 +8,7 @@ the world per tick, this attempts to reduce the impact that join floods has on the server diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java -index 5d4783e357218694ac52ec0ab5c030470cc6595f..671a7551458080d10613aa9111b77ed3cf1d25ca 100644 +index 5d4783e357218694ac52ec0ab5c030470cc6595f..431aecdbc93d93b38813536ca5297acfc6c2a3b1 100644 --- a/src/main/java/com/destroystokyo/paper/PaperConfig.java +++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java @@ -446,4 +446,9 @@ public class PaperConfig { @@ -18,7 +18,7 @@ index 5d4783e357218694ac52ec0ab5c030470cc6595f..671a7551458080d10613aa9111b77ed3 + + public static int maxJoinsPerTick; + private static void maxJoinsPerTick() { -+ getInt("settings.max-joins-per-tick", 3); ++ maxJoinsPerTick = getInt("settings.max-joins-per-tick", 3); + } } diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java |