diff --git a/src/main/java/dev/micle/xptools/config/Config.java b/src/main/java/dev/micle/xptools/config/Config.java index 75d9dc3..3763e85 100644 --- a/src/main/java/dev/micle/xptools/config/Config.java +++ b/src/main/java/dev/micle/xptools/config/Config.java @@ -104,13 +104,13 @@ public final class Config { .comment("Global operations are run before any unique operations.") .comment("Examples:") .comment("'set,0,0,0' - Sets the xp of all blocks to 0.") - .define("blockBreakGlobalOperations", new ArrayList<>()); + .defineList("blockBreakGlobalOperations", List.of(), entry -> true); blockBreakOperationsRaw = builder .comment("List of unique operations. Format: '[block_id/tag_id],[operation],[min],[max],[priority],[is_last]'") .comment("Examples:") .comment("'minecraft:dirt,set,2,2,0,true' - Sets the xp drop of the dirt block to 2, takes highest priority and stops any additional operations.") .comment("'#forge:ores,multiply,1,2,1,false' - Multiplies xp drop of all blocks tagged forge:ores by 1-2, allows additional operations.") - .define("blockBreakOperations", new ArrayList<>()); + .defineList("blockBreakOperations", List.of(), entry -> true); builder.pop(); builder.comment("Settings for entity killing").push("entity_killing"); @@ -120,13 +120,13 @@ public final class Config { .comment("Global operations are run before any unique operations.") .comment("Examples:") .comment("'set,0,0,0' - Sets the xp of all entities to 0.") - .define("entityKillGlobalOperations", new ArrayList<>()); + .defineList("entityKillGlobalOperations", List.of(), entry -> true); entityKillOperationsRaw = builder .comment("List of unique operations. Format: '[entity_id/tag_id],[operation],[min],[max],[priority],[is_last]'") .comment("Examples:") .comment("'minecraft:creeper,set,2,2,0,true' - Sets the xp drop for killing creepers to 2, takes highest priority and stops any additional operations.") .comment("'#some_mod:some_tag,multiply,1,2,1,false' - Multiplies the xp drop for killing all entities tagged some_mod:some_tag by 1-2, allows additional operations.") - .define("entityKillOperations", new ArrayList<>()); + .defineList("entityKillOperations", List.of(), entry -> true); builder.pop(); }