mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-30 19:40:37 +01:00
Fix treasure map config default (#9572)
This commit is contained in:
parent
0c4d1ba273
commit
94106a38f5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue