1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-19 13:01:20 +02:00

Fix hasOwnData to return a correct result with new mirroring system

This commit is contained in:
ElgarL
2012-01-24 15:37:21 +00:00
parent a3f1105a64
commit 09deec5770

View File

@@ -553,7 +553,7 @@ public class WorldsHolder {
* @return true if it has its own holder. false if not. * @return true if it has its own holder. false if not.
*/ */
public boolean hasOwnData(String worldName) { public boolean hasOwnData(String worldName) {
if (worldsData.containsKey(worldName.toLowerCase())) { if (worldsData.containsKey(worldName.toLowerCase()) && (!mirrorsGroup.containsKey(worldName.toLowerCase()) || !mirrorsUser.containsKey(worldName.toLowerCase()))) {
return true; return true;
} }
return false; return false;