Stops the player from mining if the area is dark.