No longer crashes when loaded with TC6 beta. Note that this is just a crash-prevention fix, the actual integration still needs modernizing

This commit is contained in:
Vincent Lee committed 2018-04-24 01:25:43 -05:00
1 parent 123e35d444
commit ed72ff3d5f
4 files changed
+27 -45

No files matched your search

@@ -68,8 +68,7 @@ public class ModBrews {
}
public static void initTC() {
Potion warpWardPotion = Potion.REGISTRY.getObject(new ResourceLocation("minecraft:warp_ward"));
// thaumcraft 5 is registering its potions under the Minecraft namespace
Potion warpWardPotion = Potion.REGISTRY.getObject(new ResourceLocation("thaumcraft:warpward"));
if(warpWardPotion != null)
warpWard = new BrewMod(LibBrewNames.WARP_WARD, 0xFBBDFF, 25000, new PotionEffect(warpWardPotion, 12000, 0)).setNotBloodPendantInfusable();