Fix bug with multiple locations being used for claiming separate areas for server-side clans such as Spawn.

This commit is contained in:
Ty Sayers 2015-06-03 20:10:32 -04:00
parent e15a2ad123
commit fa3e6c3d1f

View File

@ -63,9 +63,9 @@ public class ClansRegions
if (clan == null) if (clan == null)
{ {
clan = _manager.getClanDataAccess().create("ClansRegions", clanName, true);
for (Location location : locations) for (Location location : locations)
{ {
clan = _manager.getClanDataAccess().create("ClansRegions", clanName, true);
claimArea(clan, location, chunkRadius, claimOffset, safe); claimArea(clan, location, chunkRadius, claimOffset, safe);
log(String.format("Initialized %s faction territory and creation!", clanName)); log(String.format("Initialized %s faction territory and creation!", clanName));
} }