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> <groupId>me.badbones69</groupId>
<artifactId>crazyauctions</artifactId> <artifactId>crazyauctions</artifactId>
<version>1.2.5</version> <version>1.2.5.1</version>
<repositories> <repositories>
<repository> <repository>

View File

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