Updated mappings

This commit is contained in:
alesto
2018-11-22 16:02:40 +01:00
parent 5737109dec
commit 151dcc06da
14 changed files with 30 additions and 20 deletions
@@ -399,7 +399,7 @@ public abstract class Spell extends IForgeRegistryEntry.Impl<Spell> implements C
*/
public static Spell get(String name){
ResourceLocation key = new ResourceLocation(name);
if(key.getResourceDomain().equals("minecraft")) key = new ResourceLocation(Wizardry.MODID, name);
if(key.getNamespace().equals("minecraft")) key = new ResourceLocation(Wizardry.MODID, name);
return ((ForgeRegistry<Spell>)registry).getValue(key);
}