forked from mirror/Folia
Fix compilation of TestPluginMeta
Needed to implement isFoliaSupported()
This commit is contained in:
parent
9998ecd60d
commit
b3e1b06c07
@ -62,3 +62,21 @@ index 14ed05945ba5bfeb2b539d4786278b0e04130404..ad13d60eeb94a75c97b3d0696c39d834
|
||||
// Copied from SimplePluginManager#loadPlugins
|
||||
// Spigot doesn't validate the name when the config is created, and instead when the plugin is loaded.
|
||||
// Paper plugin configuration will do these checks in config serializer instead of when this is created.
|
||||
diff --git a/src/test/java/io/papermc/paper/plugin/TestPluginMeta.java b/src/test/java/io/papermc/paper/plugin/TestPluginMeta.java
|
||||
index ba271c35eb2804f94cfc893bf94affb9ae13d3ba..db9285c2ff0c805f5d9564b6e8520c33ea5bb65a 100644
|
||||
--- a/src/test/java/io/papermc/paper/plugin/TestPluginMeta.java
|
||||
+++ b/src/test/java/io/papermc/paper/plugin/TestPluginMeta.java
|
||||
@@ -20,6 +20,13 @@ public class TestPluginMeta implements PluginMeta {
|
||||
this.identifier = identifier;
|
||||
}
|
||||
|
||||
+ // Folia start - region threading
|
||||
+ @Override
|
||||
+ public boolean isFoliaSupported() {
|
||||
+ return true;
|
||||
+ }
|
||||
+ // Folia end - region threading
|
||||
+
|
||||
@Override
|
||||
public @NotNull String getName() {
|
||||
return this.identifier;
|
||||
|
Loading…
Reference in New Issue
Block a user