geforkt von Mirrors/Paper
fix defaulting join-classpath to true for plugin deps
Dieser Commit ist enthalten in:
Ursprung
ddd74452e4
Commit
8ca7fa95c0
@ -5286,25 +5286,23 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
+package io.papermc.paper.plugin.provider.configuration.type;
|
+package io.papermc.paper.plugin.provider.configuration.type;
|
||||||
+
|
+
|
||||||
|
+import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
|
+import org.checkerframework.framework.qual.DefaultQualifier;
|
||||||
+import org.spongepowered.configurate.objectmapping.ConfigSerializable;
|
+import org.spongepowered.configurate.objectmapping.ConfigSerializable;
|
||||||
+
|
+
|
||||||
|
+import static java.util.Objects.requireNonNullElse;
|
||||||
|
+
|
||||||
|
+@DefaultQualifier(NonNull.class)
|
||||||
+@ConfigSerializable
|
+@ConfigSerializable
|
||||||
+public record DependencyConfiguration(
|
+public record DependencyConfiguration(
|
||||||
+ LoadOrder load,
|
+ LoadOrder load,
|
||||||
+ boolean required,
|
+ Boolean required,
|
||||||
+ boolean joinClasspath
|
+ Boolean joinClasspath
|
||||||
+) {
|
+) {
|
||||||
+
|
+ @SuppressWarnings("DataFlowIssue") // incorrect intellij inspections
|
||||||
+ public DependencyConfiguration(boolean required, boolean joinClasspath) {
|
+ public DependencyConfiguration {
|
||||||
+ this(LoadOrder.OMIT, required, joinClasspath);
|
+ required = requireNonNullElse(required, true);
|
||||||
+ }
|
+ joinClasspath = requireNonNullElse(joinClasspath, true);
|
||||||
+
|
|
||||||
+ public DependencyConfiguration(boolean required) {
|
|
||||||
+ this(required, true);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ public DependencyConfiguration() {
|
|
||||||
+ this(true);
|
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ @ConfigSerializable
|
+ @ConfigSerializable
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren