mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-11 01:13:05 -04:00
Fixed bug in isComplete() allowing gift exploiting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user