Fix spam when registering potions

This commit is contained in:
Nicholas Ignoffo 2016-04-24 11:52:58 -07:00
parent d550513f0a
commit 4a1484965c

View file

@ -1,5 +1,6 @@
package WayofTime.bloodmagic.registry;
import WayofTime.bloodmagic.api.Constants;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import WayofTime.bloodmagic.api.util.helper.PlayerSacrificeHelper;
@ -46,7 +47,7 @@ public class ModPotions
protected static Potion registerPotion(String name, ResourceLocation location, boolean badEffect, int potionColour, int x, int y)
{
Potion potion = new PotionBloodMagic(name, location, badEffect, potionColour, x, y);
GameRegistry.register(potion.setRegistryName(location));
GameRegistry.register(potion.setRegistryName(location.getResourcePath()));
return potion;
}
}