mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-26 01:01:42 +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() {
|
public ProtectedRegion getAffectedRegion() {
|
||||||
|
|
||||||
int appSize = applicable.size();
|
|
||||||
|
|
||||||
if (appSize < 1) {
|
|
||||||
return null;
|
|
||||||
} else if (appSize < 2) {
|
|
||||||
return applicable.get(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
ProtectedRegion affectedRegion = null;
|
ProtectedRegion affectedRegion = null;
|
||||||
Iterator<ProtectedRegion> iter = applicable.iterator();
|
Iterator<ProtectedRegion> iter = applicable.iterator();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user