Fixed poisoning of claimed animals.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user