From a413c3be462206afc58bdeb459cc6eae334a8d57 Mon Sep 17 00:00:00 2001 From: IvanCraft623 Date: Thu, 12 Dec 2024 11:34:07 -0500 Subject: [PATCH] Add missing filter -> validator terminology changes --- src/entity/effect/EffectContainer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entity/effect/EffectContainer.php b/src/entity/effect/EffectContainer.php index cc87069123..5a50db0a13 100644 --- a/src/entity/effect/EffectContainer.php +++ b/src/entity/effect/EffectContainer.php @@ -60,7 +60,7 @@ class EffectContainer{ * * @phpstan-var \Closure(EffectInstance) : bool */ - protected \Closure $effectValidatorForBubbles; + protected \Closure $effectFilterForBubbles; public function __construct(){ $this->bubbleColor = new Color(0, 0, 0, 0); @@ -170,7 +170,7 @@ public function add(EffectInstance $effect) : bool{ */ public function setEffectFilterForBubbles(\Closure $effectValidator) : void{ Utils::validateCallableSignature(new CallbackType(new ReturnType(BuiltInTypes::BOOL), new ParameterType("effect", EffectInstance::class)), $effectValidator); - $this->effectValidatorForBubbles = $effectValidator; + $this->effectFilterForBubbles = $effectValidator; } /** @@ -181,7 +181,7 @@ protected function recalculateEffectColor() : void{ $colors = []; $ambient = true; foreach($this->effects as $effect){ - if(($this->effectValidatorForBubbles)($effect)){ + if(($this->effectFilterForBubbles)($effect)){ $level = $effect->getEffectLevel(); $color = $effect->getColor(); for($i = 0; $i < $level; ++$i){