mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Fixed botched effect override condition for equivalent amplifiers
This commit is contained in:
parent
06f2a9c674
commit
b7a3230f73
@ -470,7 +470,7 @@ abstract class Entity extends Location implements Metadatable{
|
||||
if(isset($this->effects[$effect->getId()])){
|
||||
$oldEffect = $this->effects[$effect->getId()];
|
||||
if(
|
||||
abs($effect->getAmplifier()) <= ($oldEffect->getAmplifier())
|
||||
abs($effect->getAmplifier()) < ($oldEffect->getAmplifier())
|
||||
or (abs($effect->getAmplifier()) === abs($oldEffect->getAmplifier())
|
||||
and $effect->getDuration() < $oldEffect->getDuration())
|
||||
){
|
||||
|
Loading…
x
Reference in New Issue
Block a user