Skip to content

Commit

Permalink
fixed translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-1F committed May 12, 2024
1 parent 2d11173 commit 79328cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static BaseText translate(BaseText text, String lang) {
private static BaseText translate(BaseText text, String lang, TextModifier modifier) {
if (
//#if MC >= 11900
//$$ text.getContent() instanceof TranslatableText
//$$ text.getContent() instanceof TranslatableTextContent
//#else
text instanceof TranslatableText
//#endif
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/me/ivan/ivancarpetaddition/utils/Messenger.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
//$$ import me.ivan.ivancarpetaddition.mixins.translations.TranslatableTextAccessor;
//#endif

//#if MC >= 11800
//$$ import com.google.common.collect.Lists;
//$$ import java.util.List;
//#endif


/**
* Reference: Carpet TIS Addition
*/
Expand Down

0 comments on commit 79328cd

Please sign in to comment.