From 81619a652e1859fd52c14e7a14deff7e7ac1053c Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Fri, 4 Aug 2023 08:52:22 -0700 Subject: [PATCH] Fix treasure map config default (#9572) --- patches/server/0005-Paper-config-files.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/0005-Paper-config-files.patch b/patches/server/0005-Paper-config-files.patch index 99e8ee529f..7f4ec77dad 100644 --- a/patches/server/0005-Paper-config-files.patch +++ b/patches/server/0005-Paper-config-files.patch @@ -3806,7 +3806,7 @@ index 0000000000000000000000000000000000000000..d08b65234192d5b639cead675114f64b +} diff --git a/src/main/java/io/papermc/paper/configuration/type/BooleanOrDefault.java b/src/main/java/io/papermc/paper/configuration/type/BooleanOrDefault.java new file mode 100644 -index 0000000000000000000000000000000000000000..3e422b74a377fa3edaf82dd960e7449c998c2912 +index 0000000000000000000000000000000000000000..33ae915b2462faf1705be3b195e113c154352653 --- /dev/null +++ b/src/main/java/io/papermc/paper/configuration/type/BooleanOrDefault.java @@ -0,0 +1,53 @@ @@ -3827,7 +3827,7 @@ index 0000000000000000000000000000000000000000..3e422b74a377fa3edaf82dd960e7449c + public static final ScalarSerializer SERIALIZER = new Serializer(); + + public boolean or(boolean fallback) { -+ return this.value != null && this.value; ++ return this.value == null ? fallback : this.value; + } + + private static final class Serializer extends ScalarSerializer {