The potion effects brews (and the tainted blood pendant) create now have semi transparent particles smilarly to beacons.

This commit is contained in:
Lizbeth Rika committed 2014-12-21 19:35:20 +00:00
1 parent 615764e82d
commit 40a93ba481
2 files changed
+2 -2

No files matched your search

@@ -78,7 +78,7 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem {
public ItemStack onEaten(ItemStack stack, World world, EntityPlayer player) {
if(!world.isRemote) {
for(PotionEffect effect : getBrew(stack).getPotionEffects(stack)) {
PotionEffect newEffect = new PotionEffect(effect);
PotionEffect newEffect = new PotionEffect(effect.getPotionID(), effect.getDuration(), effect.getAmplifier(), true);
player.addPotionEffect(newEffect);
}
@@ -143,7 +143,7 @@ public class ItemBloodPendant extends ItemBauble implements IBrewContainer, IBre
PotionEffect currentEffect = player.getActivePotionEffect(Potion.potionTypes[effect.getPotionID()]);
boolean nightVision = effect.getPotionID() == Potion.nightVision.id;
if(currentEffect == null || currentEffect.getDuration() < (nightVision ? 205 : 3)) {
PotionEffect applyEffect = new PotionEffect(effect.getPotionID(), nightVision ? 285 : 80, effect.getAmplifier());
PotionEffect applyEffect = new PotionEffect(effect.getPotionID(), nightVision ? 285 : 80, effect.getAmplifier(), true);
player.addPotionEffect(applyEffect);
}