1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
JustAHuman-xD 2023-03-02 07:09:45 -06:00
parent 736750116c
commit e7af86c170

View File

@ -143,7 +143,7 @@ public class AncientPedestal extends SimpleSlimefunItem<BlockDispenseHandler> im
ItemStack stack = item.getItemStack().clone();
String customName = item.getCustomName();
if (customName.equals(ItemUtils.getItemName(new ItemStack(stack.getType())))) {
if (customName != null && customName.equals(ItemUtils.getItemName(new ItemStack(stack.getType())))) {
ItemMeta im = stack.getItemMeta();
im.setDisplayName(null);
stack.setItemMeta(im);