mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-20 06:12:38 +01:00
Fix certain entities not being damaged in protected regions.
This commit is contained in:
parent
ba4e5d6ea9
commit
a2defe5971
@ -468,7 +468,7 @@ public void onVehicleExit(VehicleExitEvent event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isWhitelistedEntity(Entity entity) {
|
private boolean isWhitelistedEntity(Entity entity) {
|
||||||
return Entities.isHostile(entity) || Entities.isAmbient(entity);
|
return Entities.isNonPlayerCreature(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user