mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 20:07:41 +01:00
Fix treasure map config default (#9572)
This commit is contained in:
parent
0c4d1ba273
commit
94106a38f5
@ -3827,7 +3827,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public static final ScalarSerializer<BooleanOrDefault> 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<BooleanOrDefault> {
|
||||
|
Loading…
Reference in New Issue
Block a user