From c8d7c3a08a645f2a5d1a25ab042782dbe4a72f2c Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Wed, 11 Feb 2015 15:30:30 -0800 Subject: [PATCH] Fixed poisoning of claimed animals. --- src/me/ryanhamshire/GriefPrevention/EntityEventHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/ryanhamshire/GriefPrevention/EntityEventHandler.java b/src/me/ryanhamshire/GriefPrevention/EntityEventHandler.java index f74ec96..5f55806 100644 --- a/src/me/ryanhamshire/GriefPrevention/EntityEventHandler.java +++ b/src/me/ryanhamshire/GriefPrevention/EntityEventHandler.java @@ -888,8 +888,8 @@ class EntityEventHandler implements Listener { PotionEffectType effectType = effect.getType(); - //restrict jump potions on claimed animals (griefers could use this to steal animals over fences) - if(effectType == PotionEffectType.JUMP) + //restrict some potions on claimed animals (griefers could use this to kill or steal animals over fences) + if(effectType == PotionEffectType.JUMP || effectType == PotionEffectType.POISON) { for(LivingEntity effected : event.getAffectedEntities()) {