Appease the alex

This commit is contained in:
Spencer 2017-12-29 00:45:10 -05:00 committed by Alexander Meech
parent 4ca80c755e
commit 3b0024f13b

View File

@ -67,8 +67,13 @@ public class QuestTracker<T extends Game> implements Listener
boolean cont = true; boolean cont = true;
for (String questItem : quest.getItem()) for (String questItem : quest.getItem())
{ {
for (String str : Arrays.stream(items).filter(Objects::nonNull).collect(Collectors.toList())) for (String str : items)
{ {
if (str == null || str.isEmpty())
{
continue;
}
String first = str.replaceAll(" ", ""); String first = str.replaceAll(" ", "");
String compare = questItem.replaceAll(" ", ""); String compare = questItem.replaceAll(" ", "");