mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-24 17:39:30 +00:00
修复空模型
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user