Minor Comment Tweaks

This commit is contained in:
Olof Larsson 2015-12-08 18:12:25 +01:00
parent a063bab045
commit 121dc67365
2 changed files with 12 additions and 2 deletions

View File

@ -14,12 +14,17 @@ public abstract class WorldMixinAbstract implements WorldMixin
@Override
public List<String> getVisibleWorldIds(Permissible permissible)
{
// Create
List<String> ret = new ArrayList<String>();
// Fill
for (String worldId : this.getWorldIds())
{
if ( ! this.canSeeWorld(permissible, worldId)) continue;
ret.add(worldId);
}
// Return
return ret;
}

View File

@ -36,11 +36,16 @@ public class WorldMixinDefault extends WorldMixinAbstract
@Override
public List<String> getWorldIds()
{
// Create
List<String> ret = new ArrayList<String>();
// Fill
for (World world : Bukkit.getWorlds())
{
ret.add(world.getName());
}
// Return
return ret;
}