crucial performance optimization

This commit is contained in:
Leijurv 2019-06-01 10:56:24 -07:00
parent aca6922be0
commit 39a231eae0
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -281,7 +281,7 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
public static List<BlockPos> droppedItemsScan(List<Block> mining, World world) {
if (!Baritone.settings().mineScanDroppedItems.value) {
return new ArrayList<>();
return Collections.emptyList();
}
Set<Item> searchingFor = new HashSet<>();
for (Block block : mining) {