Fix NPE in ChestPage

This commit is contained in:
Spencer 2018-01-05 22:12:21 -05:00 committed by Alexander Meech
parent 3fd8a5bb35
commit 3653eb36df

View File

@ -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));
}