From 7d829f9cda7b5a533edf33123b45b5855ba2c4a6 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 9 Dec 2018 00:06:34 -0500 Subject: [PATCH] Proper durability check for certain materials, fixes #557. Bump version --- pom.xml | 2 +- src/main/java/me/blackvein/quests/util/ItemUtil.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3ef845aac..769871605 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ me.blackvein.quests quests - 3.4.8 + 3.4.9 quests https://github.com/FlyingPikachu/Quests/ jar diff --git a/src/main/java/me/blackvein/quests/util/ItemUtil.java b/src/main/java/me/blackvein/quests/util/ItemUtil.java index 45ddd67ee..fd683809f 100644 --- a/src/main/java/me/blackvein/quests/util/ItemUtil.java +++ b/src/main/java/me/blackvein/quests/util/ItemUtil.java @@ -60,7 +60,7 @@ public class ItemUtil { return -1; } else if ((one.getAmount() != two.getAmount()) && ignoreAmount == false) { return -2; - } else if (one.getData().equals(two.getData()) == false) { + } else if (one.getDurability() != two.getDurability()) { return -3; } if (one.hasItemMeta() || two.hasItemMeta()) {