From b3acef053e396a8a95794ca553413562112cc2f2 Mon Sep 17 00:00:00 2001 From: Treeku Date: Tue, 11 Mar 2014 00:48:53 +0000 Subject: [PATCH] Fixed bug in isComplete() allowing gift exploiting --- src/services/collections/CollectionService.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/services/collections/CollectionService.java b/src/services/collections/CollectionService.java index 809687f0..61671372 100644 --- a/src/services/collections/CollectionService.java +++ b/src/services/collections/CollectionService.java @@ -439,7 +439,6 @@ public class CollectionService implements INetworkDispatch { String bookName = ""; String pageName = ""; String collectionName = ""; - boolean found = false; boolean collectionComplete = false; collections = BitSet.valueOf(player.getCollections()); @@ -483,15 +482,10 @@ public class CollectionService implements INetworkDispatch { System.out.println("Checking if a page is complete is unsupported at this time."); throw new Exception(); } else if (collection == collectionName) { - collectionComplete = collections.get(beginSlotId); - found = true; + return collections.get(beginSlotId); } else if (collection == slotName) { return collections.get(beginSlotId); } - - if (found && collectionName != collection) { - return collectionComplete; - } } } }