Releases: LocalizedMC/TextureLocaleRedirector
1.6.0: Support 1.20-1.20.2
1.5.0: Big Rewrite
In this version, the mod underwent a major rewrite. Resource replacement is now fully handled through a Mixin on the vanilla backend (NamespaceResourceManager). This removes the need for per-mod compatibility and, in theory, enables replacement support for all mods. It also completely fixes the FTB Quests bugs present in previous versions!
Fixes
- Adding an image in FTB Quests edit mode would cause the image path in the config file to become a hard-coded, localized path
- FTB Quest images without corresponding localized resources would appear as purple-and-black missing textures
Code
- Rewrote the replacement logic
- Removed the dedicated FTB Quests compatibility code
- Removed the Mixin plugin (Conditional Mixin)
- Optimized the GitHub Actions build workflow, significantly reducing run time
- Updated dependencies
在这个版本中,模组进行了一次大重写。资源替换现在全部在原版的底层(NamespaceResourceManager)Mixin。这使模组不再需要单独适配某个模组,现在理论上支持所有模组的替换,并彻底修复了先前版本中FTB任务存在的bug!
修复
- 在FTB任务的编辑模式下添加图片,会使配置文件中的图片路径变为硬编码的本地化后的路径
- FTB任务图片无对应本地化资源时造成紫黑块
代码
- 重写替换代码
- 移除了特定针对FTB任务的兼容代码
- 移除了Mixin插件(Conditional Mixin)
- 优化了GitHub Action构建工作流,极大加快了运行时间
- 升级了依赖
1.4.0: Small bug fix
- 修复了部分路径处理错误导致日志内刷屏的bug。如
Invalid path minecraft:worldgzh_cn/biome/bamboo_jungle.json: Invalid segment 'in' in path 'worldgen_cn/biome/bamboo_jungle.json' - 修复了Fabric端错误地要求Fabric API前置,实际并不需要
-
Fixed a bug where incorrect path handling caused log spam, such as
Invalid path minecraft:worldgzh_cn/biome/bamboo_jungle.json: Invalid segment 'in' in path 'worldgen_cn/biome/bamboo_jungle.json' -
Fixed an issue on the Fabric side where Fabric API was incorrectly listed as a required dependency when it is not actually needed.
1.3.0
- 修复了FTB任务模组的可选支持,修复了图片重定向路径重复的问题
- 修复了部分版本下Forge会把模组识别为Fabric版的问题
- 修复了不支持
.mcmeta资源导致部分模型紫黑块的问题 - 重写Mixin插件实现,现在使用Conditional Mixin
- 仓库已转移到LocalizedMC组织,更新了模组元数据
- 代码开发:使用architectury loom 1.11,移除modfusioner,不再支持1.21+ Forge
作者团队:@Wulian233 @TexBlock
- Fixed optional support for the FTB Quests resolving the issue of duplicate image redirection paths
- Fixed an issue where Forge would mistakenly identify the mod as a Fabric version in some Minecraft versions
- Fixed missing
.mcmetaresource support that caused certain models to render as purple/black blocks - Rewrote the Mixin implementation; now uses Conditional Mixin
- Repository has been transferred to the LocalizedMC organization, and mod metadata has been updated
- Code Dev changes: now built with Architectury Loom 1.1*, removed modfusioner, Forge 1.21+ is no longer supported
Authors: @Wulian233 @TexBlock
1.2.0: Important Bug Fix
- Fixed a bug where the
languageCodewas not set when the game was first loaded, resulting in textures not being replaced - Optimize code
1.1.0: FTB Quests Support
This mod also provides optional support for FTB Quests.
When FTB Quests is installed, images in the quest interface (ChapterImage) will
also switch to the corresponding localized textures based on the current language.
- Any images or icons used in quests can be replaced via resource packs.
- If no localized texture is found, it will fall back to the default texture.
- Implemented via a Mixin plugin, so this mod does not have a hard dependency on FTB Quests.