Merge pull request #890 from se7enAte9/exceptionfix

menumanager: fix NoElementException
This commit is contained in:
Tyler Bochard
2019-07-05 01:51:10 -04:00
committed by GitHub

View File

@@ -796,7 +796,7 @@ public class MenuManager
leftClickEntry = Iterables.getLast(safeCurrentPriorityEntries.entrySet().stream()
.sorted(Comparator.comparingInt(e -> e.getValue().getPriority()))
.map(Map.Entry::getKey)
.collect(Collectors.toList()));
.collect(Collectors.toList()), null);
}
private void indexSwapEntries(Set<MenuEntry> entries)