mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 18:47:44 +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) {
|
||||
return Entities.isHostile(entity) || Entities.isAmbient(entity);
|
||||
return Entities.isNonPlayerCreature(entity);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user