mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2026-01-06 15:51:50 +00:00
fix default config
This commit is contained in:
@@ -197,6 +197,7 @@ public class RequirementManagerImpl implements RequirementManager {
|
||||
this.registerInBagRequirement();
|
||||
this.registerHookRequirement();
|
||||
this.registerCompetitionRequirement();
|
||||
this.registerListRequirement();
|
||||
}
|
||||
|
||||
public HashMap<String, Double> getLootWithWeight(Condition condition) {
|
||||
@@ -1051,6 +1052,18 @@ public class RequirementManagerImpl implements RequirementManager {
|
||||
});
|
||||
}
|
||||
|
||||
private void registerListRequirement() {
|
||||
registerRequirement("list", (args, actions, advanced) -> {
|
||||
LogUtils.severe("It seems that you made a mistake where you put \"list\" into \"conditions\" section.");
|
||||
ArrayList<String> list = ConfigUtils.stringListArgs(args);
|
||||
LogUtils.warn("list:");
|
||||
for (String e : list) {
|
||||
LogUtils.warn(" - " + e);
|
||||
}
|
||||
return EmptyRequirement.instance;
|
||||
});
|
||||
}
|
||||
|
||||
private void registerCompetitionRequirement() {
|
||||
registerRequirement("competition", (args, actions, advanced) -> {
|
||||
if (args instanceof ConfigurationSection section) {
|
||||
|
||||
Reference in New Issue
Block a user