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();
|
||||
|
||||
//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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user