Change type comparison to string comparison

For some reason, my compiler doesn't like my comparing potion types directly, so I changed it to a string comparison.