mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 21:15:57 +01:00
Fixed NullPointerException inside the ignite hook.
This commit is contained in:
parent
d1cb628473
commit
43d83d8855
@ -1192,7 +1192,7 @@ public boolean onIgnite(Block block, Player player) {
|
||||
}
|
||||
}
|
||||
|
||||
if (useRegions && !player.canUseCommand("/regionbypass")) {
|
||||
if (useRegions && player != null && !player.canUseCommand("/regionbypass")) {
|
||||
Vector pt = new Vector(block.getX(),
|
||||
block.getY(), block.getZ());
|
||||
LocalPlayer localPlayer = new HMPlayer(player);
|
||||
|
Loading…
Reference in New Issue
Block a user