Fixes 345

Use the object's name if it already has a display name
This commit is contained in:
tastybento 2024-06-15 06:32:36 -07:00
parent 7fb20e74f3
commit bf5132cf93

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]: