9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-24 17:39:30 +00:00

修复空模型

This commit is contained in:
XiaoMoMi
2025-10-20 03:29:52 +08:00
parent 8e9c180ae3
commit 11d1089840
2 changed files with 2 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ resource-pack:
merge-external-zip-files:
- "CustomNameplates/resourcepack.zip"
- "BetterModel/build.zip"
exclude-file-extensions: ["md", "psd", "bbmodel", "db", "ini"]
exclude-file-extensions: ["md", "psd", "bbmodel", "db", "ini", "DS_Store"]
# Exclude the shaders when generating the resource pack
exclude-core-shaders: false
delivery:

View File

@@ -1712,10 +1712,7 @@ public abstract class AbstractPackManager implements PackManager {
.resolve("empty.png");
try {
Files.createDirectories(modelPath.getParent());
GsonHelper.writeJsonFile(MiscUtils.init(new JsonObject(), o -> {
o.addProperty("parent", "minecraft:block/cube_all");
o.add("textures", MiscUtils.init(new JsonObject(), a -> a.addProperty("all", "minecraft:block/empty")));
}), modelPath);
Files.writeString(modelPath, "{}");
} catch (IOException e) {
this.plugin.logger().severe("Error writing empty block model", e);
}