diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-11-25 19:33:32 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-11-25 19:33:32 +0000 |
commit | b25a8f059b4d383b21d789aefbd3e3273503c0ba (patch) | |
tree | 4ac7ae1d6afb3e2d8708ee3fa5485920d8b3c0e6 /EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds | |
parent | 0cb77d8a03abc0879bec537bd672e09050c16a9e (diff) | |
download | Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.tar Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.tar.gz Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.tar.lz Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.tar.xz Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.zip |
Optimizations include changing the return of comparePermissionString.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java index 6544bb1cc..25eaf8526 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java @@ -268,9 +268,10 @@ public class WorldsHolder { * @return OverloadedWorldHolder */ public OverloadedWorldHolder getWorldData(String worldName) { - OverloadedWorldHolder data = worldsData.get(worldName.toLowerCase()); - if (mirrors.containsKey(worldName.toLowerCase())) { - String realOne = mirrors.get(worldName.toLowerCase()); + String worldNameLowered = worldName.toLowerCase(); + OverloadedWorldHolder data = worldsData.get(worldNameLowered); + if (mirrors.containsKey(worldNameLowered)) { + String realOne = mirrors.get(worldNameLowered); data = worldsData.get(realOne.toLowerCase()); } if (data == null) { |