Fixes alias not clearing after cloning the world

This will rather set an alias to an empty string which will automatically be resulted in alias being as same as the name of the cloned world.
Previously, it was not working as intended and kept the alias of the oldWorld.
This commit is contained in:
wellnesscookie 2020-04-30 20:43:11 +02:00 committed by GitHub
parent b4b0940918
commit c70e254dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ public class WorldManager implements MVWorldManager {
MVWorld newWorld = (MVWorld) this.getMVWorld(newName);
newWorld.copyValues(this.worldsFromTheConfig.get(oldName));
// don't keep the alias the same -- that would be useless
newWorld.setAlias(null);
newWorld.setAlias("");
return true;
}
}