Having Night Vision on a Tainted Blood Pendant will no longer make the brightness blink obnoxiously. Closes #368.

This commit is contained in:
Lizbeth Rika committed 2014-11-13 22:18:12 +00:00
1 parent 465985c52a
commit 69580d86b0
1 file changed
+3 -2
@@ -131,8 +131,9 @@ public class ItemBloodPendant extends ItemBauble implements IBrewContainer, IBre
boolean doRand = cost < 1;
if(ManaItemHandler.requestManaExact(stack, eplayer, (int) Math.ceil(cost), false)) {
PotionEffect currentEffect = player.getActivePotionEffect(Potion.potionTypes[effect.getPotionID()]);
if(currentEffect == null || currentEffect.getDuration() < 3) {
PotionEffect applyEffect = new PotionEffect(effect.getPotionID(), 80, effect.getAmplifier());
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());
player.addPotionEffect(applyEffect);
}