mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-26 04:12:22 +00:00
parent
253e40e8b9
commit
bedf207210
@ -122,7 +122,7 @@ public class Utils {
|
|||||||
FireworkMeta fireworkMeta1 = (FireworkMeta) itemMeta1;
|
FireworkMeta fireworkMeta1 = (FireworkMeta) itemMeta1;
|
||||||
FireworkMeta fireworkMeta2 = (FireworkMeta) itemMeta2;
|
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());
|
similar &= (fireworkMeta1.getPower() == fireworkMeta2.getPower());
|
||||||
|
|
||||||
} else if (itemMeta1 instanceof LeatherArmorMeta) {
|
} else if (itemMeta1 instanceof LeatherArmorMeta) {
|
||||||
|
Loading…
Reference in New Issue
Block a user