mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 01:07:30 +07:00
Fixed sector name not being displayed in saves
This commit is contained in:
@ -76,7 +76,9 @@ public class Save16 extends SaveFileVersion{
|
|||||||
short width = stream.readShort();
|
short width = stream.readShort();
|
||||||
short height = 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));
|
world.setMap(new Map("unknown", width, height));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user