Another pass through

This commit is contained in:
Vincent Lee committed 2019-06-29 14:54:39 -07:00
1 parent bd5b395ee8
commit fc1dd61c53
66 files changed
+170 -296

No files matched your search

@@ -38,6 +38,7 @@ import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.network.play.server.SRemoveEntityEffectPacket;
import net.minecraft.particles.ParticleTypes;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectType;
import net.minecraft.potion.Effects;
import net.minecraft.potion.EffectInstance;
import net.minecraft.tags.BlockTags;
@@ -563,7 +564,7 @@ public class EntityDoppleganger extends MobEntity implements IBotaniaBoss, IEnti
private void clearPotions(PlayerEntity player) {
List<Effect> potionsToRemove = player.getActivePotionEffects().stream()
.filter(effect -> effect.getDuration() < 160 && effect.isAmbient() && !effect.getPotion().isBadEffect())
.filter(effect -> effect.getDuration() < 160 && effect.isAmbient() && effect.getPotion().type != EffectType.HARMFUL)
.map(EffectInstance::getPotion)
.distinct()
.collect(Collectors.toList());