Unverified Commit 0fc578a2 authored by Thoronium's avatar Thoronium Committed by GitHub
Browse files

Fix Cooking Compound Retrieval (#2039)

* Fix misnamed field

* Fix getter name
parent 70e448d8
......@@ -12,7 +12,7 @@ import java.util.List;
public class CompoundData extends GameResource {
@Getter(onMethod = @__(@Override))
private int id;
private int groupId;
private int groupID;
private int rankLevel;
private boolean isDefaultUnlocked;
private int costTime;
......
......@@ -38,7 +38,7 @@ public class CookingCompoundManager extends BasePlayerManager {
if (compound.isDefaultUnlocked()) {
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.
unlocked = new HashSet<>(defaultUnlockedCompounds);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment