Files
Mindustry/core/src/mindustry
Antsiferov Andrew c53e14dd31 Fix crash when there's no sectors on planet (#5202)
`sectors.size - 1` is `-1` when there's no sectors on planet.
relevant crash log:
```
[E] java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 16
	at arc.struct.Seq.get(Seq.java:451)
	at mindustry.type.Planet.getLastSector(Planet.java:114)
	at mindustry.ui.dialogs.PlanetDialog.show(PlanetDialog.java:185)
        ...
        at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:36)
```
2021-05-05 14:51:35 -04:00
..
2021-02-07 09:50:33 -05:00
2021-01-04 19:50:49 -05:00
2021-05-02 13:50:53 -04:00
2021-03-26 10:13:42 -04:00
2021-05-03 22:10:36 -04:00
2021-03-29 15:06:06 -04:00
2021-03-18 22:18:21 -04:00
2021-03-21 14:08:53 -04:00
2021-03-16 21:51:12 -04:00
2021-04-29 19:51:46 -04:00
2021-04-07 21:07:08 -04:00
2021-03-09 19:04:29 -05:00