Fixes 345 (#346)

Use the object's name if it already has a display name
This commit is contained in:
tastybento 2024-06-15 06:33:23 -07:00 committed by GitHub
parent 7fb20e74f3
commit e424560c37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -566,6 +566,13 @@ public class Utils
{ {
return ""; return "";
} }
// Return the display name if it already has one
if (object.hasItemMeta()) {
ItemMeta im = object.getItemMeta();
if (im.hasDisplayName()) {
return im.getDisplayName();
}
}
// Find addon structure with: // Find addon structure with:
// [addon]: // [addon]: