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

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

No files matched your search

@@ -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();
}
}