Skip to content

Commit

Permalink
fixed #926
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke100000 committed May 16, 2024
1 parent adb50bd commit fc7652d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 7.5.17

* Now its compatible with Cobblemon!
* Fixed TTS again!

# 7.5.16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Mixin(TranslatableTextContent.class)
public class MixinTranslatableText {
@Inject(method = "updateTranslations()V", at = @At("TAIL"))
private void updateTranslations(CallbackInfo ci) {
private void mca$updateTranslations(CallbackInfo ci) {
if (CommonSpeechManager.INSTANCE.lastResolvedKey != null) {
CommonSpeechManager.INSTANCE.translations.put((TextContent)this, CommonSpeechManager.INSTANCE.lastResolvedKey);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,8 @@ abstract class MixinTranslationStorage extends Language {
if (unpooled != null) {
CommonSpeechManager.INSTANCE.lastResolvedKey = unpooled.getLeft();
info.setReturnValue(get(unpooled.getLeft(), fallback));
} else {
CommonSpeechManager.INSTANCE.lastResolvedKey = null;
if (!key.equals(modifiedKey)) {
info.setReturnValue(get(modifiedKey, fallback));
}
} else if (!key.equals(modifiedKey)) {
info.setReturnValue(get(modifiedKey, fallback));
}
}

Expand Down

0 comments on commit fc7652d

Please sign in to comment.