Fixed poisoning of claimed animals.
This commit is contained in:
1 parent
c9a340e5db
commit
c8d7c3a08a
1 file changed
+2
-2
@@ -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