Fix NPE in ChestPage
This commit is contained in:
parent
3fd8a5bb35
commit
3653eb36df
@ -90,6 +90,9 @@ public class SupportChestPage extends SupportPage
|
||||
private LinkedList<TreasureType> getTypesList()
|
||||
{
|
||||
return Arrays.stream(TreasureType.values())
|
||||
// If there's no itemstack it's not a
|
||||
// treasure chest
|
||||
.filter(t -> t.getItemStack() != null)
|
||||
.collect(Collectors.toCollection(LinkedList::new));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user