mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-13 12:23:21 +08:00
Fix Cooking Compound Retrieval (#2039)
* Fix misnamed field * Fix getter name
This commit is contained in:
parent
70e448d8bc
commit
0fc578a243
@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
public class CompoundData extends GameResource {
|
public class CompoundData extends GameResource {
|
||||||
@Getter(onMethod = @__(@Override))
|
@Getter(onMethod = @__(@Override))
|
||||||
private int id;
|
private int id;
|
||||||
private int groupId;
|
private int groupID;
|
||||||
private int rankLevel;
|
private int rankLevel;
|
||||||
private boolean isDefaultUnlocked;
|
private boolean isDefaultUnlocked;
|
||||||
private int costTime;
|
private int costTime;
|
||||||
|
@ -38,7 +38,7 @@ public class CookingCompoundManager extends BasePlayerManager {
|
|||||||
if (compound.isDefaultUnlocked()) {
|
if (compound.isDefaultUnlocked()) {
|
||||||
defaultUnlockedCompounds.add(id);
|
defaultUnlockedCompounds.add(id);
|
||||||
}
|
}
|
||||||
compoundGroups.computeIfAbsent(compound.getGroupId(), gid -> new HashSet<>()).add(id);
|
compoundGroups.computeIfAbsent(compound.getGroupID(), 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.
|
//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);
|
unlocked = new HashSet<>(defaultUnlockedCompounds);
|
||||||
|
Loading…
Reference in New Issue
Block a user