Fixed some block indexing
This commit is contained in:
@@ -225,7 +225,7 @@ public class BlockIndexer{
|
|||||||
TileEntity e = other.entity;
|
TileEntity e = other.entity;
|
||||||
|
|
||||||
float ndst = Mathf.dst(x, y, e.x, e.y);
|
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;
|
dst = ndst;
|
||||||
closest = e;
|
closest = e;
|
||||||
}
|
}
|
||||||
|
|||||||
5
fastlane/metadata/android/en-US/changelogs/102.2.txt
Normal file
5
fastlane/metadata/android/en-US/changelogs/102.2.txt
Normal 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)
|
||||||
5
fastlane/metadata/android/en-US/changelogs/29573.txt
Normal file
5
fastlane/metadata/android/en-US/changelogs/29573.txt
Normal 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)
|
||||||
Reference in New Issue
Block a user