Allow damage to be less than 1

This resolves problems with mods that use fake damage events to check with WorldGuard what's going on.
This commit is contained in:
Dark Arc 2012-11-02 20:56:08 -04:00
parent 34fa5eceb8
commit eec78092b5

View File

@ -156,7 +156,6 @@ private void onEntityDamageByBlock(EntityDamageByBlockEvent event) {
private void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
if (event.getDamage() < 1) return;
if (event.getDamager() instanceof Projectile) {
onEntityDamageByProjectile(event);
return;