mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 23:28:52 +07:00
Fixed sector name not being displayed in saves
This commit is contained in:
parent
bbd2424a3f
commit
25bd8a7eaa
@ -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…
Reference in New Issue
Block a user