From 53b67cc1b381f188b4eb6132605a4d136d7dfd88 Mon Sep 17 00:00:00 2001 From: Thomas Kain Date: Mon, 3 Jul 2023 20:28:37 -0400 Subject: [PATCH] Make overloads consistent for defineListAllowEmpty in ForgeConfigSpec.Builder (#9604) --- src/main/java/com/example/examplemod/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/examplemod/Config.java b/src/main/java/com/example/examplemod/Config.java index 0ac7934..4601345 100644 --- a/src/main/java/com/example/examplemod/Config.java +++ b/src/main/java/com/example/examplemod/Config.java @@ -35,7 +35,7 @@ public class Config // a list of strings that are treated as resource locations for items private static final ForgeConfigSpec.ConfigValue> ITEM_STRINGS = BUILDER .comment("A list of items to log on common setup.") - .defineListAllowEmpty(Collections.singletonList("items"), () -> List.of("minecraft:iron_ingot"), Config::validateItemName); + .defineListAllowEmpty("items", List.of("minecraft:iron_ingot"), Config::validateItemName); static final ForgeConfigSpec SPEC = BUILDER.build();