ObliviousSpartan / SpartanWeaponry

Weapons Galore! A whole new arsenal of weaponry made for Minecraft
https://www.curseforge.com/minecraft/mc-mods/spartan-weaponry
Apache License 2.0
30 stars 8 forks source link

Addons need their own translations for trait types #47

Closed KreloX closed 4 months ago

KreloX commented 5 months ago

in WeaponTrait.initTooltipTypes the trait type component should always use Spartan Weaponry's modid, not the addon's one.

Currently, all addons wishing to add a new trait using the api need to either have their own translations for "melee", "throwing", etc. or use a workaround.

ObliviousSpartan commented 5 months ago

Oh good find! My bad. I'll push a fix for this whenever I can.

KreloX commented 5 months ago

Also, in ModelGenerator.createMeleeWeaponModels the coating textures should always use the spartanweaponry id too. texture("coating", coatingTexture.getPath()) should be texture("coating", coatingTexture)

ObliviousSpartan commented 4 months ago

Noted and fixed! I just need to review what else needs to be fixed and if the API changes break anything before I push the next 1.20.1 update.

ObliviousSpartan commented 4 months ago

The new version with these fixes is live now! I've tested the fixes I've made with this issue and your other one with your existing addon mods and it doesn't appear to have broken anything. Thanks for letting me know about these again. Closing issue