mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-22 11:55:12 +01:00
v1.2.5.1
Bug Fix: - 1.8.8 and down servers would get an error from the categories tab.
This commit is contained in:
parent
92d6553ebc
commit
9d44a5d701
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>me.badbones69</groupId>
|
||||
<artifactId>crazyauctions</artifactId>
|
||||
<version>1.2.5</version>
|
||||
<version>1.2.5.1</version>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
|
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user