diff --git a/src/entity/object/AreaEffectCloud.php b/src/entity/object/AreaEffectCloud.php index d5bb67e307..6120769cc6 100644 --- a/src/entity/object/AreaEffectCloud.php +++ b/src/entity/object/AreaEffectCloud.php @@ -150,7 +150,7 @@ protected function initEntity(CompoundTag $nbt) : void{ } }else{ foreach($this->potionType->getEffects() as $effect){ - $this->effectContainer->add($effect->setDuration((int) round($effect->getDuration() / 4))); + $this->effectContainer->add($effect); if($effect->getType() instanceof InstantEffect){ $this->setReapplicationDelay(0); } @@ -395,7 +395,7 @@ protected function entityBaseTick(int $tickDiff = 1) : bool{ if($effect->getType() instanceof InstantEffect){ $effect->getType()->applyEffect($entity, $effect, 0.5, $this); }else{ - $entity->getEffects()->add($effect); + $entity->getEffects()->add($effect->setDuration((int) round($effect->getDuration() / 4))); } } if($this->reapplicationDelay !== 0){