mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 18:09:27 +00:00
Update config.yml
This commit is contained in:
@@ -53,6 +53,9 @@ resource-pack:
|
||||
max: LATEST
|
||||
merge-external-folders:
|
||||
- ModelEngine/resource pack
|
||||
- CustomNameplates/ResourcePack
|
||||
- BetterModel/build
|
||||
- BetterHud/build
|
||||
send:
|
||||
send-on-join: true
|
||||
send-on-reload: true
|
||||
@@ -93,10 +96,8 @@ resource-pack:
|
||||
type: exact
|
||||
path: "pack.mcmeta"
|
||||
resolution:
|
||||
type: retain_matching
|
||||
term:
|
||||
type: contains
|
||||
path: "resources/default/resourcepack/"
|
||||
type: merge_pack_mcmeta
|
||||
description: "<gray>CraftEngine ResourcePack"
|
||||
- term:
|
||||
type: exact
|
||||
path: "pack.png"
|
||||
|
||||
@@ -61,6 +61,15 @@ public abstract class AbstractPackManager implements PackManager {
|
||||
this.plugin = plugin;
|
||||
this.eventDispatcher = eventDispatcher;
|
||||
this.zipGenerator = (p1, p2) -> {};
|
||||
Path resourcesFolder = this.plugin.dataFolderPath().resolve("resources");
|
||||
try {
|
||||
if (Files.notExists(resourcesFolder)) {
|
||||
Files.createDirectories(resourcesFolder);
|
||||
this.saveDefaultConfigs();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
this.plugin.logger().warn("Failed to create default configs folder", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -101,12 +101,13 @@ public class MergePackMcMetaResolution implements Resolution {
|
||||
|
||||
if (customDescription != null && !isEmpty(customDescription)) {
|
||||
pack.put("description", customDescription);
|
||||
} else {
|
||||
}
|
||||
/* else {
|
||||
String desc1 = getDescription(data1);
|
||||
String desc2 = getDescription(data2);
|
||||
String mergedDesc = desc1.isEmpty() ? desc2 : desc2.isEmpty() ? desc1 : desc1 + "\n" + desc2;
|
||||
if (!mergedDesc.isEmpty()) pack.put("description", mergedDesc);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user