fixed a retrieval module crash, oh God

Closes #140
This commit is contained in:
Ell 2022-07-16 10:22:08 +02:00
parent 4968ed9ef1
commit c94907e327

View file

@ -46,7 +46,7 @@ public class RetrievalModuleItem extends ModuleItem {
var copy = filtered.copy();
copy.setCount(this.maxExtraction);
var dest = tile.getAvailableDestination(directions, copy, true, this.preventOversending);
if (dest.getRight().isEmpty())
if (dest == null)
continue;
var remain = dest.getRight().copy();
// are we already waiting for crafting results? If so, don't request those again