Prioritize chests closer to player first
This commit is contained in:
parent
d6f53946d9
commit
06a621d370
@ -464,6 +464,8 @@ class QuickStackPacket(
|
|||||||
|
|
||||||
if (findCaps.isEmpty()) return
|
if (findCaps.isEmpty()) return
|
||||||
|
|
||||||
|
findCaps.sortBy { it.first.blockPos.distToCenterSqr(player.position) }
|
||||||
|
|
||||||
val eyes = player.eyePosition
|
val eyes = player.eyePosition
|
||||||
val ignoreBlockstates = HashSet<BlockState>()
|
val ignoreBlockstates = HashSet<BlockState>()
|
||||||
findCaps.forEach { (b, _) -> ignoreBlockstates.add(b.blockState) }
|
findCaps.forEach { (b, _) -> ignoreBlockstates.add(b.blockState) }
|
||||||
|
Loading…
Reference in New Issue
Block a user