Fix misnamed field

This commit is contained in:
Thoronium 2023-01-30 17:35:16 -07:00
parent e0c0ed688d
commit 21ef404e14
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

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