Skip to content

Commit

Permalink
Fix for getting name of null materials
Browse files Browse the repository at this point in the history
  • Loading branch information
joserodpt committed Oct 28, 2024
1 parent 2c085d4 commit 3d9a3a1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public static String formatNumber(double number) {
}

public static String beautifyMaterialName(Material m) {
if (m == null) {
return "Unknown";
}

String[] parts = m.name().split("_");
StringBuilder formattedString = new StringBuilder();

Expand Down

0 comments on commit 3d9a3a1

Please sign in to comment.