aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/item/base
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-07-06 11:50:42 +1000
committerAlkalus <draknyte1@hotmail.com>2017-07-06 11:50:42 +1000
commit89cbaf872bc166223feb3d0cd3dad0ab2be648c6 (patch)
tree505144d26e2af2f952275a8db2a755ca63856cfa /src/Java/gtPlusPlus/core/item/base
parent16213d8ae2bd16421bbe90b16011e75a965f7792 (diff)
downloadGT5-Unofficial-89cbaf872bc166223feb3d0cd3dad0ab2be648c6.tar.gz
GT5-Unofficial-89cbaf872bc166223feb3d0cd3dad0ab2be648c6.tar.bz2
GT5-Unofficial-89cbaf872bc166223feb3d0cd3dad0ab2be648c6.zip
$ Fixed Chemical Formulae not displaying correctly.
Diffstat (limited to 'src/Java/gtPlusPlus/core/item/base')
-rw-r--r--src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java b/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
index 22db669020..a4c395d850 100644
--- a/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
+++ b/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
@@ -141,12 +141,7 @@ public class BaseItemComponent extends Item{
}
if (this.componentMaterial != null){
if (!this.componentMaterial.vChemicalFormula.equals("??") && !this.componentMaterial.vChemicalFormula.equals("?")) {
- if ((this.componentType != ComponentTypes.CELL) || (this.componentType != ComponentTypes.PLASMACELL)){
- list.add(Utils.sanitizeString(this.componentMaterial.vChemicalFormula));
- }
- else {
- list.add(Utils.sanitizeString(this.componentMaterial.vChemicalFormula));
- }
+ list.add(Utils.sanitizeStringKeepBrackets(this.componentMaterial.vChemicalFormula));
}
if (this.componentMaterial.isRadioactive){