mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Having Night Vision on a Tainted Blood Pendant will no longer make the brightness blink obnoxiously. Closes #368.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user