Skip to content

Commit f84074c

Browse files
committed
correct behavior of empty schema method
1 parent 92b183b commit f84074c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/kyori/option/OptionSchema.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface OptionSchema {
4040
/**
4141
* Retrieve the globally-shared option schema.
4242
*
43-
* <p>This mostly exists for backwards compatibility.</p>
43+
* <p>This mostly exists for backwards compatibility, and should not be used in new software.</p>
4444
*
4545
* @return the global schema
4646
* @since 1.1.0
@@ -77,7 +77,7 @@ public interface OptionSchema {
7777
* @since 1.1.0
7878
*/
7979
static OptionSchema.@NotNull Mutable emptySchema() {
80-
return childSchema(globalSchema());
80+
return new OptionSchemaImpl(null).new MutableImpl();
8181
}
8282

8383
/**

0 commit comments

Comments
 (0)