RequestCollectionRegister should use getCompleteCount method.
This commit is contained in:
@@ -92,7 +92,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
|
|||||||
|
|
||||||
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
|
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
|
||||||
|
|
||||||
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getItems().size())
|
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getCompleteCount())
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExCollectionComplete(_collectionId));
|
player.sendPacket(new ExCollectionComplete(_collectionId));
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
||||||
<spawn name="AdenSquareMerchants">
|
<spawn name="AdenSquareMerchants">
|
||||||
<group>
|
<group>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
||||||
<spawn name="GiranSquareMerchants">
|
<spawn name="GiranSquareMerchants">
|
||||||
<group>
|
<group>
|
||||||
|
@@ -92,7 +92,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
|
|||||||
|
|
||||||
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
|
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
|
||||||
|
|
||||||
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getItems().size())
|
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getCompleteCount())
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExCollectionComplete(_collectionId));
|
player.sendPacket(new ExCollectionComplete(_collectionId));
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
||||||
<spawn name="AdenSquareMerchants">
|
<spawn name="AdenSquareMerchants">
|
||||||
<group>
|
<group>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
||||||
<spawn name="GiranSquareMerchants">
|
<spawn name="GiranSquareMerchants">
|
||||||
<group>
|
<group>
|
||||||
|
@@ -92,7 +92,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
|
|||||||
|
|
||||||
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
|
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
|
||||||
|
|
||||||
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getItems().size())
|
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getCompleteCount())
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExCollectionComplete(_collectionId));
|
player.sendPacket(new ExCollectionComplete(_collectionId));
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
||||||
<spawn name="AdenSquareMerchants">
|
<spawn name="AdenSquareMerchants">
|
||||||
<group>
|
<group>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
|
||||||
<spawn name="GiranSquareMerchants">
|
<spawn name="GiranSquareMerchants">
|
||||||
<group>
|
<group>
|
||||||
|
@@ -92,7 +92,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
|
|||||||
|
|
||||||
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
|
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
|
||||||
|
|
||||||
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getItems().size())
|
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getCompleteCount())
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExCollectionComplete(_collectionId));
|
player.sendPacket(new ExCollectionComplete(_collectionId));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user