mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-26 00:19:43 +00:00
Fix global mirroring of non main worlds.
This commit is contained in:
parent
51ddcdcf87
commit
9ce067a7fd
1 changed files with 8 additions and 2 deletions
|
@ -418,8 +418,14 @@ public class WorldsHolder {
|
|||
// Find this worlds data
|
||||
if (worldsData.containsKey(worldNameLowered))
|
||||
return getUpdatedWorldData(worldNameLowered);
|
||||
|
||||
// Oddly no data source was found for this world so return the default.
|
||||
|
||||
// Oddly no data source was found for this world so attempt to return the global mirror.
|
||||
if (worldsData.containsKey("all_unnamed_worlds")) {
|
||||
GroupManager.logger.finest("Requested world " + worldName + " not found or badly mirrored. Returning all_unnamed_worlds world...");
|
||||
return getUpdatedWorldData("all_unnamed_worlds");
|
||||
}
|
||||
|
||||
// Oddly no data source or global mirror was found for this world so return the default.
|
||||
GroupManager.logger.finest("Requested world " + worldName + " not found or badly mirrored. Returning default world...");
|
||||
return getDefaultWorld();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue