Specifying meanings for null in Faction fields and removing the getAccountId method alltogether.

This commit is contained in:
Olof Larsson
2013-04-24 14:42:52 +02:00
parent 6846c426c4
commit f6da2d397b
4 changed files with 11 additions and 23 deletions

View File

@ -73,10 +73,11 @@ public class LwcEngine implements Listener
public static void removeAlienProtections(PS chunkPs, Faction faction)
{
List<UPlayer> nonAliens = faction.getUPlayers();
for (Protection protection : getProtectionsInChunk(chunkPs))
{
UPlayer owner = UPlayer.get(protection.getOwner());
if (faction.getUPlayers().contains(owner)) continue;
if (nonAliens.contains(owner)) continue;
protection.remove();
}
}