Update src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java

Co-authored-by: montlikadani <montlikada@gmail.com>
This commit is contained in:
Ben Woo 2021-02-18 23:20:13 +08:00 committed by GitHub
parent 3f2ec3d40f
commit 3e85e42bd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,9 @@ public class WorldManager implements MVWorldManager {
*/
private boolean validCloneParameters() {
String originalOldName = oldName;
oldName = isWorldFromConfig(oldName) ? oldName : getWorldByAliasFromConfig(oldName);
if (!isWorldFromConfig(oldName)) {
oldName = getWorldByAliasFromConfig(oldName);
}
if (oldName == null) {
Logging.warning("Old world '%s' does not exist", originalOldName);