Переведи на русский с адаптацией: Some things I noticed:• I fell like I should point out…
- User
Переведи на русский с адаптацией: Some things I noticed:• I fell like I should point out that you could drastically simplify your config. Respackopts can infer your entry type in most cases and for your enums, the default seems to be the first value, so they can be simplified too.• I noticed you have an option where users can enter their mod loader. That information is already available to you using something like to figure out the specifics). Also note that (for now) only Fabric is supported by Respackopts (though support for NeoForge is being worked on) (use • is inverted: if the option is enabled, the original resource is used. If not, it uses the respackopts variant. That seems wrong.It seems like your handling of • Minecraft searches all namespaces of all resource packs for language files, so it is likely your fallback would be picked up even if it wasn't enabled. Personally, I'd recommend moving the fallback next to the actual file and naming it something like I assume you are reloading your resources before looking at translations? This should happen automatically and be indicated by a reload screen when you exit your resource pack screen, but please confirm that this does in fact happen.Also, mods that interfere with language or resource pack loading might interfere with respackopts by using their own caches or similar. Does your translation load properly in an instance using only Respackopts? If yes, what mod is incompatible?Finally, a reproducer (or just your pack if it is small) and instructions for how to reproduce the issue would allow me to do my own debugging. - 11:36 AMThe sample pack included in my repository does actually include translations using resource expansion, so maybe testing that in your environment would be helpful
- Assistant
Некоторые вещи, которые я заметил:
-
Я чувствую, что должен указать, что вы могли бы значительно упростить свою конфигурацию. Respackopts в большинстве случаев может самостоятельно определить тип записи, а для ваших перечислений значение по умолчанию, похоже, является первым в списке, так что их тоже можно упростить.
-
Я заметил, что у вас есть опция, где пользователи могут ввести свой загрузчик модов. Эта информация уже доступна вам с помощью чего-то вроде для определения деталей. Также обратите внимание, что (на данный момент) Respackopts поддерживает только Fabric (хотя ведется работа над поддержкой NeoForge), поэтому используйте соответствующие возможности.
-