Fix incorrect alloy amount when using a liquid mold.
We don't have to increase outputAmount after addMetal because the function already increases and overwrites the value.
When the alloy amount is 0 it has to be nulled, otherwise it keeps creating HashMaps uselessly.
Fixes #340.