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; ...@@ -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 { ...@@ -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);
......
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