mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-27 16:00:51 -07:00
Fixed sector name not being displayed in saves
This commit is contained in:
parent
bbd2424a3f
commit
25bd8a7eaa
1 changed files with 3 additions and 1 deletions
|
|
@ -76,7 +76,9 @@ public class Save16 extends SaveFileVersion{
|
|||
short width = stream.readShort();
|
||||
short height = stream.readShort();
|
||||
|
||||
if(map == null){
|
||||
if(world.getSector() != null){
|
||||
world.setMap(new Map("Sector " + world.getSector().x + ", " + world.getSector().y, width, height));
|
||||
}else if(map == null){
|
||||
world.setMap(new Map("unknown", width, height));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue