Fixed sector name not being displayed in saves

This commit is contained in:
Anuken 2018-08-17 13:02:53 -04:00
parent bbd2424a3f
commit 25bd8a7eaa

View File

@ -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));
}