mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-24 18:19:03 +01:00
Fixed the NullPointerException in the damage hook caused by a null attacker.
This commit is contained in:
parent
66139dacac
commit
bfa1734d23
@ -1474,7 +1474,7 @@ public boolean onDamage(PluginLoader.DamageType type, BaseEntity attacker,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (attacker.isPlayer()) {
|
||||
if (attacker != null && attacker.isPlayer()) {
|
||||
if (useRegions) {
|
||||
Vector pt = new Vector(defender.getX(),
|
||||
defender.getY(), defender.getZ());
|
||||
|
Loading…
Reference in New Issue
Block a user