mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
Use value from new potion effect particle visibility API.
By: 0x277F <0x277F@gmail.com>
This commit is contained in:
parent
13e3cbe255
commit
6ef454742b
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||||
}
|
}
|
||||||
removePotionEffect(effect.getType());
|
removePotionEffect(effect.getType());
|
||||||
}
|
}
|
||||||
getHandle().addEffect(new MobEffect(effect.getType().getId(), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), true));
|
getHandle().addEffect(new MobEffect(effect.getType().getId(), effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue