Notifying only on collections that actually have any items.

This commit is contained in:
marcins78@gmail.com
2012-04-06 16:15:24 +00:00
parent 415a166e7d
commit 8ba9c7574d

View File

@@ -85,7 +85,8 @@ public class CollectionsManager {
_readWriteLock.writeLock().lock();
try {
setPlayerCollection(player, collectionType.getCode(), cardCollection);
addPackage(player, collectionType, cardCollection);
if (cardCollection.getAll().size() > 0)
addPackage(player, collectionType, cardCollection);
} finally {
_readWriteLock.writeLock().unlock();
}