Minor Comment Tweaks
This commit is contained in:
parent
a063bab045
commit
121dc67365
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user