diff --git a/pom.xml b/pom.xml index 9d634ce..af66f71 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ com.songoda EpicBuckets 4.0.0 - 1.4 + 1.4.1 clean package @@ -122,7 +122,7 @@ http://nexus.hc.to/content/repositories/pub_releases - 3_aikar + 33_aikar https://repo.aikar.co/content/groups/aikar/ diff --git a/src/main/java/com/songoda/epicbuckets/shop/Shop.java b/src/main/java/com/songoda/epicbuckets/shop/Shop.java index b086f75..302539a 100644 --- a/src/main/java/com/songoda/epicbuckets/shop/Shop.java +++ b/src/main/java/com/songoda/epicbuckets/shop/Shop.java @@ -108,7 +108,10 @@ public class Shop { public SubShop getSubShop(XMaterial mat) { for (SubShop subShop : subShops.values()) { - if (subShop.getGenItem().isSimilar(mat.parseItem())) return subShop; + if (subShop.getGenItem().getType() == mat.parseMaterial() && + subShop.getGenItem().getTypeId() == mat.parseItem().getTypeId()) { + return subShop; + } } return null; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index fa16652..12a724c 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: EpicBuckets -version: 1.4 +version: 1.4.1 description: Generate walls fast and efficient with beautiful guis! author: Songoda main: com.songoda.epicbuckets.EpicBuckets