mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 19:16:40 +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