Register the potions

This commit is contained in:
Vincent Lee committed 2016-03-24 09:45:56 -05:00
1 parent ec419edfe3
commit 1b87160ef6
1 file changed
+1 -1
@@ -26,7 +26,7 @@ public class PotionMod extends Potion {
public PotionMod(String name, boolean badEffect, int color, int iconIndex) {
super(badEffect, color);
// todo 1.9 register
GameData.getPotionRegistry().register(-1, new ResourceLocation("botania", name), this);
setPotionName("botania.potion." + name);
setIconIndex(iconIndex % 8, iconIndex / 8);
}