mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-01 02:04:51 +00:00
Keep snippets in snippet/<type> only
- Drop the snippet/iris/<group>/<type> lookup, so a type has one folder again - Replace SnippetFolders and PackSnippets with SnippetFolder, which needs no disk discovery - Restore the schema pattern, palette path and validator signatures that only served the second folder - Trim the snippet tests to the single folder
This commit is contained in:
1 parent
3ada6c2639
commit
592e93a95e
21 files changed
+181
-490
No files matched your search
+2
-1
@@ -20,6 +20,7 @@ package art.arcane.iris.modded;
|
||||
|
||||
import art.arcane.iris.pack.loading.IrisData;
|
||||
import art.arcane.iris.pack.loading.ResourceLoader;
|
||||
import art.arcane.iris.pack.loading.SnippetFolder;
|
||||
import art.arcane.iris.pack.schema.SchemaBuilder;
|
||||
import art.arcane.iris.pack.schema.annotation.Snippet;
|
||||
import art.arcane.iris.spi.IrisLogging;
|
||||
@@ -99,7 +100,7 @@ public final class ModdedWorkspaceGenerator {
|
||||
try {
|
||||
String snipType = snippetClass.getDeclaredAnnotation(Snippet.class).value();
|
||||
JSONObject entry = new JSONObject();
|
||||
List<String> fileMatch = data.getSnippetFolders(snipType).workspaceFileMatches();
|
||||
List<String> fileMatch = new SnippetFolder(snipType).workspaceFileMatches();
|
||||
|
||||
entry.put("fileMatch", new JSONArray(fileMatch.toArray()));
|
||||
entry.put("url", "./.iris/schema/snippet/" + snipType + "-schema.json");
|
||||
|
||||
Reference in new issue
Block a user