mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-27 18:41:35 +01:00
Ignore unknown cause entity damage.
Fixes WORLDGUARD-3293.
This commit is contained in:
parent
f40cb69f38
commit
04214a96eb
@ -621,9 +621,6 @@ public void onEntityDamage(EntityDamageEvent event) {
|
|||||||
Events.fireToCancel(event, new UseItemEvent(event, create(damager), event.getEntity().getWorld(), item));
|
Events.fireToCancel(event, new UseItemEvent(event, create(damager), event.getEntity().getWorld(), item));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
|
||||||
Events.fireToCancel(event, new DamageEntityEvent(event, Cause.unknown(), event.getEntity()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user