Skip to content

Commit

Permalink
Fix crash when generating a report. Closes #287
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Mar 16, 2024
1 parent add0528 commit 10dd4bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public void writeToReport(boolean full, JsonObjectWriter writer, Map<String, Blo
Identifier id = EntityType.getId(type);
if (full || !contains(id)) {
if (type.create(MinecraftClient.getInstance().world) instanceof LivingEntity) {
writer.field(id.toString(), values.get(id).name());
writer.field(id.toString(), values.getOrDefault(id, Locomotion.NONE).name());
}
}
});
}
}
}

0 comments on commit 10dd4bc

Please sign in to comment.