menumanager: fix NoElementException

This commit is contained in:
7ate9
2019-07-05 00:16:34 -04:00
parent 1e6a5df6de
commit 4dd049edd7

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)