Fixed poisoning of claimed animals.

This commit is contained in:
ryanhamshire 2015-02-11 15:30:30 -08:00
parent c9a340e5db
commit c8d7c3a08a

View File

@ -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())
{