Fixed error

Fixed error where if you didn't enter a distance the game would crash
(placing and mining)