Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
e20b185d
Commit
e20b185d
authored
Aug 10, 2022
by
GanyusLeftHorn
Committed by
GitHub
Aug 10, 2022
Browse files
Fix Claiming BP Reward Chests (#1634)
Original commits: * Fix claiming BP chests. * Remove logging.
parent
a2cdec02
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/battlepass/BattlePassManager.java
View file @
e20b185d
...
...
@@ -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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment