mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-27 10:59:07 +00:00
应当忽略#开头的材质
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user