Fix spam when registering potions
This commit is contained in:
parent
d550513f0a
commit
4a1484965c
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
package WayofTime.bloodmagic.registry;
|
package WayofTime.bloodmagic.registry;
|
||||||
|
|
||||||
|
import WayofTime.bloodmagic.api.Constants;
|
||||||
import net.minecraft.potion.Potion;
|
import net.minecraft.potion.Potion;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import WayofTime.bloodmagic.api.util.helper.PlayerSacrificeHelper;
|
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)
|
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);
|
Potion potion = new PotionBloodMagic(name, location, badEffect, potionColour, x, y);
|
||||||
GameRegistry.register(potion.setRegistryName(location));
|
GameRegistry.register(potion.setRegistryName(location.getResourcePath()));
|
||||||
return potion;
|
return potion;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue