mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-21 18:15:26 +01:00
Update src/main/java/com/onarandombox/MultiverseCore/utils/WorldManager.java
Co-authored-by: montlikadani <montlikada@gmail.com>
This commit is contained in:
parent
3f2ec3d40f
commit
3e85e42bd0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user