mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 16:54:04 +00:00
Refresh pack listings before building workspace schemas
IrisData.get hands back a shared instance whose file listings outlive edits, so a studio update or datapack ingest regenerated schemas that still offered removed keys and missed new ones.
This commit is contained in:
1 parent
aaa5e05cf0
commit
3c6dc52b8e
3 files changed
+41
No files matched your search
+2
@@ -97,6 +97,8 @@ public final class ModdedWorkspaceGenerator {
|
||||
|
||||
private static JSONArray buildSchemas(IrisData data, boolean immediateSchemas, List<CompletableFuture<String>> schemaWrites) {
|
||||
JSONArray schemas = new JSONArray();
|
||||
// The shared instance keeps its file listings across edits, so files added, moved or removed since would be missing.
|
||||
data.clearLists();
|
||||
|
||||
for (ResourceLoader<?> loader : data.getLoaders().v()) {
|
||||
if (loader.supportsSchemas()) {
|
||||
|
||||
Reference in new issue
Block a user