From e20b185dc054820c7dead25294f1ccf2a2bb26fc Mon Sep 17 00:00:00 2001 From: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com> Date: Wed, 10 Aug 2022 03:34:22 +0200 Subject: [PATCH] Fix Claiming BP Reward Chests (#1634) Original commits: * Fix claiming BP chests. * Remove logging. --- .../java/emu/grasscutter/game/battlepass/BattlePassManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/game/battlepass/BattlePassManager.java b/src/main/java/emu/grasscutter/game/battlepass/BattlePassManager.java index 9858ed0fa..5be220cb0 100644 --- a/src/main/java/emu/grasscutter/game/battlepass/BattlePassManager.java +++ b/src/main/java/emu/grasscutter/game/battlepass/BattlePassManager.java @@ -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()) {