mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Merge branch 'next-minor' into next-major
This commit is contained in:
commit
3dd4c42fd3
@ -30,7 +30,7 @@ use pocketmine\event\entity\EntityDamageEvent;
|
|||||||
class WitherEffect extends Effect{
|
class WitherEffect extends Effect{
|
||||||
|
|
||||||
public function canTick(EffectInstance $instance) : bool{
|
public function canTick(EffectInstance $instance) : bool{
|
||||||
if(($interval = (50 >> $instance->getAmplifier())) > 0){
|
if(($interval = (40 >> $instance->getAmplifier())) > 0){
|
||||||
return ($instance->getDuration() % $interval) === 0;
|
return ($instance->getDuration() % $interval) === 0;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user