mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 21:19:46 +00:00
No longer use the raw potion array, use potio registry
This commit is contained in:
1 parent
b01e9dfed7
commit
08de553593
9 files changed
+26
-21
No files matched your search
@@ -12,6 +12,7 @@ package vazkii.botania.common.brew;
|
||||
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraftforge.fml.common.registry.GameData;
|
||||
import vazkii.botania.api.brew.Brew;
|
||||
import vazkii.botania.common.lib.LibBrewNames;
|
||||
|
||||
@@ -67,7 +68,7 @@ public class ModBrews {
|
||||
|
||||
public static void initTC() {
|
||||
Potion warpWardPotion = null;
|
||||
for(Potion potion : Potion.potionTypes)
|
||||
for(Potion potion : GameData.getPotionRegistry().typeSafeIterable())
|
||||
if(potion != null && potion.getName().equals("potion.warpward")) {
|
||||
warpWardPotion = potion;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user