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
0fc578a2
Unverified
Commit
0fc578a2
authored
Feb 02, 2023
by
Thoronium
Committed by
GitHub
Feb 02, 2023
Browse files
Fix Cooking Compound Retrieval (#2039)
* Fix misnamed field * Fix getter name
parent
70e448d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/excels/CompoundData.java
View file @
0fc578a2
...
...
@@ -12,7 +12,7 @@ import java.util.List;
public
class
CompoundData
extends
GameResource
{
@Getter
(
onMethod
=
@__
(
@Override
))
private
int
id
;
private
int
groupI
d
;
private
int
groupI
D
;
private
int
rankLevel
;
private
boolean
isDefaultUnlocked
;
private
int
costTime
;
...
...
src/main/java/emu/grasscutter/game/managers/cooking/CookingCompoundManager.java
View file @
0fc578a2
...
...
@@ -38,7 +38,7 @@ public class CookingCompoundManager extends BasePlayerManager {
if
(
compound
.
isDefaultUnlocked
())
{
defaultUnlockedCompounds
.
add
(
id
);
}
compoundGroups
.
computeIfAbsent
(
compound
.
getGroupI
d
(),
gid
->
new
HashSet
<>()).
add
(
id
);
compoundGroups
.
computeIfAbsent
(
compound
.
getGroupI
D
(),
gid
->
new
HashSet
<>()).
add
(
id
);
});
//TODO:Because we haven't implemented fishing feature,unlock all compounds related to fish.Besides,it should be bound to player rather than manager.
unlocked
=
new
HashSet
<>(
defaultUnlockedCompounds
);
...
...
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