Bug Fix:
 - 1.8.8 and down servers would get an error from the categories tab.
This commit is contained in:
BadBones69 2018-06-12 19:52:07 -04:00
parent 92d6553ebc
commit 9d44a5d701
2 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>me.badbones69</groupId>
<artifactId>crazyauctions</artifactId>
<version>1.2.5</version>
<version>1.2.5.1</version>
<repositories>
<repository>

View File

@ -123,7 +123,9 @@ public enum Category {
private static ArrayList<Material> getPotions() {
ArrayList<Material> ma = new ArrayList<>();
ma.add(Material.POTION);
ma.add(Material.SPLASH_POTION);
if(Material.matchMaterial("SPLASH_POTION") != null) {
ma.add(Material.matchMaterial("SPLASH_POTION"));
}
if(Material.matchMaterial("LINGERING_POTION") != null) {
ma.add(Material.matchMaterial("LINGERING_POTION"));
}