Fixed crash with Vendor Block

I fixed an issue with the Vendor Block when you put in a non-numeric value, which caused the game to crash due to a NumberFormatException