Fix order of grabbing supplies and checking barrels

This commit is contained in:
2021-04-17 22:04:41 +00:00
parent daf152389a
commit 7d0cef0e2e
2 changed files with 64 additions and 32 deletions
+2 -1
View File
@@ -75,7 +75,8 @@ class MCWorld:
continue
if distance and utils.phyp(center, block) > distance:
continue
result.append(block)
if block not in result:
result.append(block)
result.sort(key=lambda x: utils.phyp(center, x))
return result