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