Fixed MaterialStack String representations sometimes missing brackets
This commit is contained in:
parent
e7d8d5ecbe
commit
d805ce4613
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
package gregtech.api.objects;
|
package gregtech.api.objects;
|
||||||
|
|
||||||
import gregtech.api.enums.Materials;
|
import gregtech.api.enums.Materials;
|
||||||
|
import gregtech.api.util.GT_Log;
|
||||||
|
|
||||||
public class MaterialStack implements Cloneable {
|
public class MaterialStack implements Cloneable {
|
||||||
public long mAmount;
|
public long mAmount;
|
||||||
|
@ -33,9 +34,10 @@ public class MaterialStack implements Cloneable {
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
String temp1 = "", temp2 = mMaterial.getToolTip(true), temp3 = "", temp4 = "";
|
String temp1 = "", temp2 = mMaterial.getToolTip(true), temp3 = "", temp4 = "";
|
||||||
|
System.out.println("EPIK "+mMaterial.mDefaultLocalName+" "+mMaterial.mElement);
|
||||||
if (mAmount > 1) {
|
if (mAmount > 1) {
|
||||||
temp4 = String.valueOf(mAmount);
|
temp4 = String.valueOf(mAmount);
|
||||||
if (mMaterial.mMaterialList.size() > 1) {
|
if (mMaterial.mMaterialList.size() > 1 || (mMaterial.mMaterialList.size() == 1 && mMaterial.mElement == null)) {
|
||||||
temp1 = "(";
|
temp1 = "(";
|
||||||
temp3 = ")";
|
temp3 = ")";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue