mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 02:45:13 +00:00
Register the potions
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user