Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugman76 committed Nov 16, 2024
1 parent d683115 commit 5ad0492
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/hugman/uhc/config/UHCConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public record UHCConfig(
Codec.INT.fieldOf("team_size").forGetter(UHCConfig::teamSize),
UHCMapConfig.CODEC.fieldOf("map").forGetter(UHCConfig::mapConfig),
UHCChapterConfig.CODEC.fieldOf("chapters").forGetter(UHCConfig::chapterConfig),
Module.LIST_CODEC.optionalFieldOf("modules", RegistryEntryList.of()).forGetter(UHCConfig::modules)
Module.ENTRY_LIST_CODEC.optionalFieldOf("modules", RegistryEntryList.of()).forGetter(UHCConfig::modules)
).apply(instance, UHCConfig::new));

public List<Modifier> getModifiers() {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/hugman/uhc/module/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public record Module(String translation, Optional<Either<String, List<String>>>
Modifier.TYPE_CODEC.listOf().fieldOf("modifiers").forGetter(Module::modifiers)
).apply(instance, Module::new));

public static final Codec<RegistryEntry<Module>> REGISTRY_CODEC = RegistryElementCodec.of(UHCRegistryKeys.MODULE, CODEC);
public static final Codec<RegistryEntryList<Module>> LIST_CODEC = RegistryCodecs.entryList(UHCRegistryKeys.MODULE, CODEC);
public static final Codec<List<RegistryEntryList<Module>>> LISTS_CODEC = RegistryCodecs.entryList(UHCRegistryKeys.MODULE, CODEC, true).listOf();
public static final Codec<RegistryEntry<Module>> ENTRY_CODEC = RegistryElementCodec.of(UHCRegistryKeys.MODULE, CODEC);
public static final Codec<RegistryEntryList<Module>> ENTRY_LIST_CODEC = RegistryCodecs.entryList(UHCRegistryKeys.MODULE, CODEC);
public static final Codec<List<RegistryEntryList<Module>>> ENTRY_LISTS_CODEC = RegistryCodecs.entryList(UHCRegistryKeys.MODULE, CODEC, true).listOf();

public List<String> getDescriptionLines() {
List<String> list = new ArrayList<>();
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/data/uhcrun/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"module.uhcrun.need_for_resources.description.5": "Dead bushes drop bread",
"module.uhcrun.need_for_resources.description.6": "Mushrooms drop stews",
"module.uhcrun.need_for_resources.description.7": "More entities drop leather",
"module.uhcrun.need_for_resources.description.8": "Sheep drop strings",
"module.uhcrun.ore_balance": "Ore Balance",
"module.uhcrun.ore_balance.description": "Lapis, gold and diamond ores are more frequent",
"module.uhcrun.timberman": "Timberman",
Expand Down

0 comments on commit 5ad0492

Please sign in to comment.