From bedf207210b80432a95adec505aa3f53059065f7 Mon Sep 17 00:00:00 2001 From: Steven M Date: Sun, 1 Jan 2017 17:52:33 +0100 Subject: [PATCH] Fix fireworks (#52) Fixes #51 --- src/main/java/de/epiceric/shopchest/utils/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/utils/Utils.java b/src/main/java/de/epiceric/shopchest/utils/Utils.java index 50c91e5..d351e0f 100644 --- a/src/main/java/de/epiceric/shopchest/utils/Utils.java +++ b/src/main/java/de/epiceric/shopchest/utils/Utils.java @@ -122,7 +122,7 @@ public class Utils { FireworkMeta fireworkMeta1 = (FireworkMeta) itemMeta1; FireworkMeta fireworkMeta2 = (FireworkMeta) itemMeta2; - if (fireworkMeta1.hasEffects()) similar = (fireworkMeta1.getEffects().equals(fireworkMeta2.getEnchants())); + if (fireworkMeta1.hasEffects()) similar = (fireworkMeta1.getEffects().equals(fireworkMeta2.getEffects())); similar &= (fireworkMeta1.getPower() == fireworkMeta2.getPower()); } else if (itemMeta1 instanceof LeatherArmorMeta) {