Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Dec 19, 2024
1 parent 3e17f50 commit 2e26c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entity/object/AreaEffectCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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){
Expand Down

0 comments on commit 2e26c08

Please sign in to comment.