Merge pull request #1060 from JohannesGaessler/MaterialFormulaFix

Material formula fix
This commit is contained in:
Blood-Asp 2017-05-31 18:57:05 +02:00 committed by GitHub
commit ba030d3239

View file

@ -35,7 +35,7 @@ public class MaterialStack implements Cloneable {
String temp1 = "", temp2 = mMaterial.getToolTip(true), temp3 = "", temp4 = "";
if (mAmount > 1) {
temp4 = String.valueOf(mAmount);
if (mMaterial.mMaterialList.size() > 1) {
if (mMaterial.mMaterialList.size() > 1 || (mMaterial.mMaterialList.size() == 1 && mMaterial.mElement == null)) {
temp1 = "(";
temp3 = ")";
}