mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Cleaned up Effect handling and replacement
This commit is contained in:
@ -237,9 +237,9 @@ abstract class Living extends Entity implements Damageable{
|
||||
){
|
||||
return;
|
||||
}
|
||||
$effect->add($this, true, $oldEffect);
|
||||
$effect->add($this, $oldEffect);
|
||||
}else{
|
||||
$effect->add($this, false);
|
||||
$effect->add($this);
|
||||
}
|
||||
|
||||
$this->effects[$effect->getId()] = $effect;
|
||||
|
Reference in New Issue
Block a user