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;
}

View File

@ -0,0 +1,5 @@
- Added new map view w/ panning and scrolling
- Added block health rule
- Added more internal teams for alternative gamemodes
- Added features for improved server modding
- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)

View File

@ -0,0 +1,5 @@
- Added new map view w/ panning and scrolling
- Added block health rule
- Added more internal teams for alternative gamemodes
- Added features for improved server modding
- Major internal change: package is now "mindustry" instead of "io.anuke.mindustry" (will break plugins)