Skip to content

Commit

Permalink
feat: switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed May 24, 2024
1 parent 231ff81 commit 1963f73
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -716,12 +716,16 @@ public void mapData(DataMapProvider provider) {

@Override
@Nullable
public String logSuffix(boolean isLang) {
return isLang ? " Log" : "_log";
public String logSuffix(LangType isLang) {
return switch (isLang) {
case ID -> "_log";
case LANG -> " Log";
case LANG_PLURAL -> " Logs";
};
}

@Override
public String woodSuffix(boolean isLang) {
public String woodSuffix(LangType isLang) {
return null;
}

Expand Down

0 comments on commit 1963f73

Please sign in to comment.