Skip to content

Commit

Permalink
Fix LeavesPluginMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei authored Jul 23, 2024
1 parent ae8db6e commit 926ba03
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions patches/server/0130-Leaves-plugins.patch
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ index 0000000000000000000000000000000000000000..35fe2f6a1785d525a46c4bc4d61c5043
\ No newline at end of file
diff --git a/src/main/java/org/leavesmc/leaves/plugin/provider/configuration/LeavesPluginMeta.java b/src/main/java/org/leavesmc/leaves/plugin/provider/configuration/LeavesPluginMeta.java
new file mode 100644
index 0000000000000000000000000000000000000000..3b223ca7028317b460fc05e4b7802a1c7eead824
index 0000000000000000000000000000000000000000..4eb3396fd82e3d32ecb4ee4af4ffa28ab86f34b7
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/plugin/provider/configuration/LeavesPluginMeta.java
@@ -0,0 +1,91 @@
@@ -0,0 +1,90 @@
+package org.leavesmc.leaves.plugin.provider.configuration;
+
+import com.google.common.collect.ImmutableList;
Expand All @@ -241,7 +241,7 @@ index 0000000000000000000000000000000000000000..3b223ca7028317b460fc05e4b7802a1c
+import org.spongepowered.configurate.CommentedConfigurationNode;
+import org.spongepowered.configurate.ConfigurateException;
+import org.spongepowered.configurate.hocon.HoconConfigurationLoader;
+import org.spongepowered.configurate.loader.HeaderMode;
+import org.spongepowered.configurate.objectmapping.ConfigSerializable;
+import org.spongepowered.configurate.objectmapping.ObjectMapper;
+import org.spongepowered.configurate.serialize.ScalarSerializer;
+import org.spongepowered.configurate.serialize.SerializationException;
Expand All @@ -251,6 +251,7 @@ index 0000000000000000000000000000000000000000..3b223ca7028317b460fc05e4b7802a1c
+import java.util.List;
+import java.util.function.Predicate;
+
+@ConfigSerializable
+public class LeavesPluginMeta extends PaperPluginMeta {
+ private List<String> mixins;
+ static final ApiVersion MINIMUM = ApiVersion.getOrCreateVersion("1.21");
Expand All @@ -260,7 +261,6 @@ index 0000000000000000000000000000000000000000..3b223ca7028317b460fc05e4b7802a1c
+ .prettyPrinting(true)
+ .emitComments(true)
+ .emitJsonCompatible(true)
+ .headerMode(HeaderMode.NONE)
+ .source(() -> reader)
+ .defaultOptions((options) ->
+ options.serializers((serializers) ->
Expand Down Expand Up @@ -296,7 +296,6 @@ index 0000000000000000000000000000000000000000..3b223ca7028317b460fc05e4b7802a1c
+ )
+ )
+ )
+
+ .build();
+ CommentedConfigurationNode node = loader.load();
+ LegacyPaperMeta.migrate(node);
Expand Down

0 comments on commit 926ba03

Please sign in to comment.