mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 18:47:44 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attacker.isPlayer()) {
|
if (attacker != null && attacker.isPlayer()) {
|
||||||
if (useRegions) {
|
if (useRegions) {
|
||||||
Vector pt = new Vector(defender.getX(),
|
Vector pt = new Vector(defender.getX(),
|
||||||
defender.getY(), defender.getZ());
|
defender.getY(), defender.getZ());
|
||||||
|
Loading…
Reference in New Issue
Block a user