Fixed NullPointerException inside the ignite hook.

This commit is contained in:
sk89q 2011-01-12 09:15:04 -08:00
parent d1cb628473
commit 43d83d8855

View File

@ -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);