From dc7b6790b8623ddd741ed185f8f0c1e9563252ee Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Mon, 27 Jan 2020 14:39:47 +0000 Subject: [PATCH] Automatic spell sound creation, hurrah! --- src/main/java/electroblob/wizardry/spell/Spell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/spell/Spell.java b/src/main/java/electroblob/wizardry/spell/Spell.java index 047680c8..e2eaf873 100644 --- a/src/main/java/electroblob/wizardry/spell/Spell.java +++ b/src/main/java/electroblob/wizardry/spell/Spell.java @@ -204,7 +204,7 @@ public abstract class Spell extends IForgeRegistryEntry.Impl implements C * @see Spell#playSound(World, double, double, double, int, int, SpellModifiers, String...) */ protected SoundEvent[] createSounds(){ - return new SoundEvent[]{WizardrySounds.createSound("spell." + this.getRegistryName().getPath())}; + return new SoundEvent[]{WizardrySounds.createSound(this.getRegistryName().getNamespace(), "spell." + this.getRegistryName().getPath())}; } // Note 1: The aim here is conciseness. Keeping the identifiers in the spell classes means we don't usually have to