mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-20 21:21:50 +01:00
Fix a bug on MC 1.8
This commit is contained in:
parent
119692188f
commit
96897a336b
@ -85,7 +85,7 @@ public ItemShortcut(Minepacks plugin)
|
||||
private boolean isItemShortcut(@Nullable ItemStack stack)
|
||||
{
|
||||
//noinspection ConstantConditions
|
||||
return stack != null && stack.getType() == HeadUtils.HEAD_MATERIAL && stack.hasItemMeta() && stack.getItemMeta().getDisplayName().equals(itemName);
|
||||
return stack != null && stack.getType() == HeadUtils.HEAD_MATERIAL && stack.hasItemMeta() && itemName.equals(stack.getItemMeta().getDisplayName());
|
||||
}
|
||||
|
||||
private void addItem(Player player)
|
||||
|
Loading…
Reference in New Issue
Block a user