Adding break; to switch in onEntityDamage

This commit is contained in:
nossr50 2012-03-02 09:37:55 -08:00
parent 4f2a0b8260
commit 30e5410906

View File

@ -119,11 +119,12 @@ public class mcEntityListener implements Listener
if(!event.isCancelled() && event.getDamage() >= 1)
PP.setRecentlyHurt(System.currentTimeMillis());
}
break;
case WOLF:
Wolf wolf = (Wolf) entity;
if((wolf.getNoDamageTicks() < wolf.getMaximumNoDamageTicks()/2.0F) && wolf.isTamed() && wolf.getOwner() != null)
Taming.preventDamage(event, plugin);
break;
}
}