Fix a bug on MC 1.8

This commit is contained in:
GeorgH93 2020-03-18 13:44:09 +01:00
parent 119692188f
commit 96897a336b
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -7,7 +7,7 @@
<packaging>pom</packaging>
<properties>
<revision>2.3.4</revision>
<revision>2.3.5-RC1</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>