mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Fix #3444
This commit is contained in:
parent
736750116c
commit
e7af86c170
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user