Quick bug fix.

Fixed the timing of mining sounds, as well as a nullpointer created by
placing blocks.