Fixed bug in build manager which would prevent future builds until the core was restarted.

This commit is contained in:
CalDescent 2022-02-06 13:03:01 +00:00
parent cfe0414d96
commit 3c526db52e

View File

@ -39,7 +39,7 @@ public class ArbitraryDataBuilderThread implements Runnable {
Map.Entry<String, ArbitraryDataBuildQueueItem> next = buildManager.arbitraryDataBuildQueue
.entrySet().stream()
.filter(e -> e.getValue().isQueued())
.findFirst().get();
.findFirst().orElse(null);
if (next == null) {
continue;