Staging changes would be a good idea. Also fix possible potion crash
No files matched your search
@@ -28,6 +28,8 @@ import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.client.event.RenderPlayerEvent;
|
||||
|
||||
import net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry;
|
||||
import net.minecraftforge.fml.common.registry.GameData;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
@@ -141,7 +143,8 @@ public class ItemBloodPendant extends ItemBauble implements IBrewContainer, IBre
|
||||
|
||||
@Override
|
||||
public ItemStack getItemForBrew(Brew brew, ItemStack stack) {
|
||||
if(!brew.canInfuseBloodPendant() || brew.getPotionEffects(stack).size() != 1 || Potion.potionTypes[brew.getPotionEffects(stack).get(0).getPotionID()].isInstant())
|
||||
FMLControlledNamespacedRegistry<Potion> potionRegistry = GameData.getPotionRegistry();
|
||||
if(!brew.canInfuseBloodPendant() || brew.getPotionEffects(stack).size() != 1 || potionRegistry.getObjectById(brew.getPotionEffects(stack).get(0).getPotionID()).isInstant())
|
||||
return null;
|
||||
|
||||
ItemStack brewStack = new ItemStack(this);
|
||||
|
||||
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 176 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 519 B |
|
After Width: | Height: | Size: 149 B |
|
After Width: | Height: | Size: 519 B |
|
After Width: | Height: | Size: 738 B |
|
After Width: | Height: | Size: 191 B |
|
After Width: | Height: | Size: 738 B |
|
After Width: | Height: | Size: 252 B |
|
After Width: | Height: | Size: 246 B |
|
After Width: | Height: | Size: 415 B |
|
After Width: | Height: | Size: 245 B |
|
After Width: | Height: | Size: 346 B |
|
After Width: | Height: | Size: 230 B |
|
After Width: | Height: | Size: 265 B |
|
After Width: | Height: | Size: 481 B |
|
After Width: | Height: | Size: 317 B |
|
After Width: | Height: | Size: 420 B |
|
After Width: | Height: | Size: 417 B |
|
After Width: | Height: | Size: 370 B |
|
After Width: | Height: | Size: 382 B |
|
After Width: | Height: | Size: 461 B |