Fix PlayerInteractEvent NPE; resolves #789
This commit is contained in:
parent
973bae2d25
commit
4de94822b2
|
@ -106,6 +106,9 @@ public class DWorldListener implements Listener {
|
|||
return;
|
||||
}
|
||||
Block block = event.getClickedBlock();
|
||||
if (block == null) {
|
||||
return;
|
||||
}
|
||||
GameWorld gameWorld = plugin.getGameWorld(block.getWorld());
|
||||
if (gameWorld == null || gameWorld.isPlaying()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue