Fixed poisoning of claimed animals.
This commit is contained in:
parent
c9a340e5db
commit
c8d7c3a08a
|
|
@ -888,8 +888,8 @@ class EntityEventHandler implements Listener
|
||||||
{
|
{
|
||||||
PotionEffectType effectType = effect.getType();
|
PotionEffectType effectType = effect.getType();
|
||||||
|
|
||||||
//restrict jump potions on claimed animals (griefers could use this to steal animals over fences)
|
//restrict some potions on claimed animals (griefers could use this to kill or steal animals over fences)
|
||||||
if(effectType == PotionEffectType.JUMP)
|
if(effectType == PotionEffectType.JUMP || effectType == PotionEffectType.POISON)
|
||||||
{
|
{
|
||||||
for(LivingEntity effected : event.getAffectedEntities())
|
for(LivingEntity effected : event.getAffectedEntities())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user