Skip to content

Commit

Permalink
fix: AnimModel (7)
Browse files Browse the repository at this point in the history
  • Loading branch information
MegumiKasuga committed Dec 2, 2024
1 parent 290526e commit b9671d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static BedrockModel readModel(JsonObject jsonObject, @Nullable JsonDeseri

ArrayList<Material> materials = new ArrayList<>();
Material texture = null;
if (jsonObject.get("textures").isJsonObject()) {
if (jsonObject.has("textures") && jsonObject.get("textures").isJsonObject()) {
for (Map.Entry<String, JsonElement> entry : jsonObject.get("textures")
.getAsJsonObject().entrySet()) {
if (!entry.getValue().isJsonPrimitive()) continue;
Expand Down

0 comments on commit b9671d2

Please sign in to comment.