mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-02-16 01:42:18 +01:00
add a null check for category
This commit is contained in:
parent
6a08ec0b6f
commit
d015646d20
@ -452,7 +452,7 @@ public class AuctionsMenu extends Holder {
|
||||
|
||||
final ItemBuilder itemBuilder = ItemBuilder.convertItemStack(item);
|
||||
|
||||
if (this.category != Category.NONE && !this.category.getItems().contains(itemBuilder.getMaterial())) return;
|
||||
if (this.category != null && this.category != Category.NONE && !this.category.getItems().contains(itemBuilder.getMaterial())) return;
|
||||
|
||||
final long price = auction.getLong("Price");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user