mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-07 19:39:47 +01:00
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:
parent
34fa5eceb8
commit
eec78092b5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user