Fix treasure map config default (#9572)

This commit is contained in:
Jake Potrebic 2023-08-04 08:52:22 -07:00
parent 0c4d1ba273
commit 94106a38f5

View File

@ -3827,7 +3827,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ public static final ScalarSerializer<BooleanOrDefault> SERIALIZER = new Serializer(); + public static final ScalarSerializer<BooleanOrDefault> SERIALIZER = new Serializer();
+ +
+ public boolean or(boolean fallback) { + 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<BooleanOrDefault> { + private static final class Serializer extends ScalarSerializer<BooleanOrDefault> {