Extra internal methods

This commit is contained in:
Niels Vergucht 2019-01-03 00:12:05 +01:00
parent 711ca8035d
commit 46b7903cd5
3 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<groupId>com.songoda</groupId>
<artifactId>EpicBuckets</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.4</version>
<version>1.4.1</version>
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
@ -122,7 +122,7 @@
<url>http://nexus.hc.to/content/repositories/pub_releases</url>
</repository>
<repository>
<id>3_aikar</id>
<id>33_aikar</id>
<url>https://repo.aikar.co/content/groups/aikar/</url>
</repository>
<repository>

View File

@ -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;
}

View File

@ -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