Skip to content

Commit

Permalink
Make use of helper method for creating language keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pupnewfster committed Mar 11, 2025
1 parent acc4db8 commit 95013ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected void addEntity(Holder<EntityType<?>> key, String value) {
}

protected void addModuleConfig(ResourceLocation configKey, String value) {
add("module." + configKey.getNamespace() + "." + configKey.getPath(), value);
add(configKey.toLanguageKey("module"), value);
}

protected void addHolder(Holder<? extends IHasTranslationKey> key, String value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ private void addJade() {
}

private void addJadeConfigTooltip(ResourceLocation location, String value) {
add("config.jade.plugin_" + location.getNamespace() + "." + location.getPath(), value);
add("config.jade.plugin_" + location.toLanguageKey(), value);
}

private void addMisc() {
Expand Down

0 comments on commit 95013ee

Please sign in to comment.