From 96897a336b8807c66ac7d8eb1b022b22f4e88920 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Wed, 18 Mar 2020 13:44:09 +0100 Subject: [PATCH] Fix a bug on MC 1.8 --- .../pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java index ddbbf7e..934ea2c 100644 --- a/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java +++ b/Minepacks/src/at/pcgamingfreaks/Minepacks/Bukkit/Listener/ItemShortcut.java @@ -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) diff --git a/pom.xml b/pom.xml index f21a71e..0aa31a7 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom - 2.3.4 + 2.3.5-RC1 UTF-8 UTF-8