Change default behaviour of Spell#createSoundWithSuffix to point to assets/modid/sounds.json rather than assets/ebwizardry/sounds.json, so addons don't have to override it

This commit is contained in:
Electroblob77
2020-01-14 14:39:09 +00:00
parent a608375433
commit 76b4f2f72f
2 changed files with 10 additions and 3 deletions
@@ -294,7 +294,7 @@ public abstract class Spell extends IForgeRegistryEntry.Impl<Spell> implements C
* @see Spell#createSoundsWithSuffixes(String[])
*/
public final SoundEvent createSoundWithSuffix(String suffix){
return WizardrySounds.createSound("spell." + this.getRegistryName().getPath() + "." + suffix);
return WizardrySounds.createSound(this.getRegistryName().getNamespace(), "spell." + this.getRegistryName().getPath() + "." + suffix);
}
/**