diff options
author | Anthony J. Halliday <[email protected]> | 2024-08-19 05:46:39 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-19 11:46:39 +0200 |
commit | ba1b0162faaa7bf78d33162f6976586bb3049275 (patch) | |
tree | e07084eb21f4bc2950d6a6560767481227fafa29 /patches/server/0005-Paper-config-files.patch | |
parent | dae906ba452e4a17779aa6438ccd6deb42d7f0df (diff) | |
download | Paper-ba1b0162faaa7bf78d33162f6976586bb3049275.tar.gz Paper-ba1b0162faaa7bf78d33162f6976586bb3049275.zip |
Allow server administrators to disable book size checks (#10457)
Diffstat (limited to 'patches/server/0005-Paper-config-files.patch')
-rw-r--r-- | patches/server/0005-Paper-config-files.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/patches/server/0005-Paper-config-files.patch b/patches/server/0005-Paper-config-files.patch index 4892a6b5f9..b87cc8fe29 100644 --- a/patches/server/0005-Paper-config-files.patch +++ b/patches/server/0005-Paper-config-files.patch @@ -487,10 +487,10 @@ index 0000000000000000000000000000000000000000..d9502ba028a96f9cc846f9ed428bd806 +} diff --git a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java new file mode 100644 -index 0000000000000000000000000000000000000000..e727414d784debd276dcc42aabf588d6fcbccc91 +index 0000000000000000000000000000000000000000..45ab7ff5497ceccb85944d2e8d354d9c860abf3b --- /dev/null +++ b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java -@@ -0,0 +1,323 @@ +@@ -0,0 +1,324 @@ +package io.papermc.paper.configuration; + +import co.aikar.timings.MinecraftTimings; @@ -513,6 +513,7 @@ index 0000000000000000000000000000000000000000..e727414d784debd276dcc42aabf588d6 +import java.util.List; +import java.util.Map; +import java.util.Objects; ++import java.util.OptionalInt; + +@SuppressWarnings({"CanBeFinal", "FieldCanBeLocal", "FieldMayBeFinal", "NotNullFieldNotInitialized", "InnerClassMayBeStatic"}) +public class GlobalConfiguration extends ConfigurationPart { @@ -723,7 +724,7 @@ index 0000000000000000000000000000000000000000..e727414d784debd276dcc42aabf588d6 + public BookSize bookSize; + + public class BookSize extends ConfigurationPart { -+ public int pageMax = 2560; // TODO this appears to be a duplicate setting with one above ++ public IntOr.Disabled pageMax = new IntOr.Disabled(OptionalInt.of(2560)); // TODO this appears to be a duplicate setting with one above + public double totalMultiplier = 0.98D; // TODO this should probably be merged into the above inner class + } + public boolean resolveSelectorsInBooks = false; |