mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 21:15:57 +01:00
optimized getAffectedRegion()
This commit is contained in:
parent
16fb6b4f9d
commit
1d5c28f37f
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user