optimized getAffectedRegion()

This commit is contained in:
Redecouverte 2011-02-26 00:20:40 +01:00
parent 16fb6b4f9d
commit 1d5c28f37f

View File

@ -257,14 +257,6 @@ private String getAreaFlag(String name, String subname, Boolean inherit, LocalPl
*/
public ProtectedRegion getAffectedRegion() {
int appSize = applicable.size();
if (appSize < 1) {
return null;
} else if (appSize < 2) {
return applicable.get(0);
}
ProtectedRegion affectedRegion = null;
Iterator<ProtectedRegion> iter = applicable.iterator();