9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 18:39:20 +00:00

Update ResolutionMergePackMcMeta.java

This commit is contained in:
XiaoMoMi
2025-12-11 22:48:17 +08:00
parent c42e1f87d7
commit 5f4b13ea4f

View File

@@ -345,8 +345,8 @@ public class ResolutionMergePackMcMeta implements Resolution {
public void run(PathContext existing, PathContext conflict) {
try {
mergeMcMeta(existing.path(), conflict.path(), AdventureHelper.componentToJsonElement(AdventureHelper.miniMessage().deserialize(this.description)));
} catch (IOException e) {
CraftEngine.instance().logger().severe("Failed to merge pack.mcmeta when resolving file conflicts", e);
} catch (Exception e) {
CraftEngine.instance().logger().severe("Failed to merge pack.mcmeta when resolving file conflicts for '" + existing.path() + "' and '" + conflict.path() + "'", e);
}
}