Fixed some block indexing

This commit is contained in:
Anuken
2019-12-29 21:51:44 -05:00
parent 66d19ec6b7
commit 6f61665390
3 changed files with 11 additions and 1 deletions

View File

@@ -225,7 +225,7 @@ public class BlockIndexer{
TileEntity e = other.entity;
float ndst = Mathf.dst(x, y, e.x, e.y);
if(ndst < range && (closest == null || ndst < dst || (usePriority && closest.block.priority.ordinal() < e.block.priority.ordinal()))){
if(ndst < range && (closest == null || ndst < dst || (usePriority && closest.block.priority.ordinal() <= e.block.priority.ordinal()))){
dst = ndst;
closest = e;
}