9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 10:59:07 +00:00

应当忽略#开头的材质

This commit is contained in:
XiaoMoMi
2025-06-11 02:10:17 +08:00
parent 4dece35d57
commit 51bb540857
2 changed files with 1 additions and 2 deletions

View File

@@ -759,8 +759,8 @@ public abstract class AbstractPackManager implements PackManager {
if (modelJson.has("textures")) {
JsonObject textures = modelJson.get("textures").getAsJsonObject();
for (Map.Entry<String, JsonElement> entry : textures.entrySet()) {
// String textureId = entry.getKey();
String value = entry.getValue().getAsString();
if (value.charAt(0) == '#') continue;
Key textureResourceLocation = Key.from(value);
imageToModels.put(textureResourceLocation, model);
}