mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-15 09:34:50 +00:00
Make overloads consistent for defineListAllowEmpty in ForgeConfigSpec.Builder (#9604)
This commit is contained in:
1 parent
72e2ae1d6f
commit
c0fe1688d8
2 files changed
+10
-2
No files matched your search
@@ -35,7 +35,7 @@ public class Config
|
||||
// a list of strings that are treated as resource locations for items
|
||||
private static final ForgeConfigSpec.ConfigValue<List<? extends String>> 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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user