mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
The potion effects brews (and the tainted blood pendant) create now have semi transparent particles smilarly to beacons.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user