Skip to content

Commit

Permalink
Set description IDs for fluid types to fluid
Browse files Browse the repository at this point in the history
I have enough translation keys for fluids without adding another key for every one, why have separate names?
  • Loading branch information
KnightMiner committed Mar 16, 2024
1 parent af9b0c3 commit 2a3fdf0
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 71 deletions.
7 changes: 6 additions & 1 deletion src/main/java/slimeknights/tconstruct/TConstruct.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,12 @@ public static String resourceString(String res) {
* namespace.
*/
public static String prefix(String name) {
return String.format("%s.%s", MOD_ID, name.toLowerCase(Locale.US));
return MOD_ID + "." + name.toLowerCase(Locale.US);
}

/** Makes a Tinker's description ID */
public static String makeDescriptionId(String type, String name) {
return type + "." + MOD_ID + "." + name;
}

/**
Expand Down

0 comments on commit 2a3fdf0

Please sign in to comment.