Fix Claiming BP Reward Chests (#1634)

Original commits:

* Fix claiming BP chests.

* Remove logging.
This commit is contained in:
GanyusLeftHorn 2022-08-10 03:34:22 +02:00 committed by GitHub
parent a2cdec02af
commit e20b185dc0

View File

@ -212,7 +212,7 @@ public class BattlePassManager extends BasePlayerDataManager {
rewardItems.add(rewardItem);
}
// For ITEM_USE_GRANT_SELECT_REWARD chests, we have to again look up reward data.
else if (rewardItemData.getItemUse().get(0).getUseOp().equals("ITEM_USE_GRANT_SELECT_REWARD")) {
else if (rewardItemData.getItemUse().get(0).getUseOp() == ItemUseOp.ITEM_USE_GRANT_SELECT_REWARD) {
RewardData selectedReward = GameData.getRewardDataMap().get(chosenId);
for (var r : selectedReward.getRewardItemList()) {