aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/item
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2019-10-24 02:09:32 +0100
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2019-10-24 02:09:32 +0100
commit1fe377e10ef32f3e54e0d152f64c67eaebef1993 (patch)
tree1aa303dd24509f09d61c3df05e80fa4e24a7fc2a /src/Java/gtPlusPlus/core/item
parent68e266e0a227aaf90294d2a8ffd5081dc3bb640e (diff)
downloadGT5-Unofficial-1fe377e10ef32f3e54e0d152f64c67eaebef1993.tar.gz
GT5-Unofficial-1fe377e10ef32f3e54e0d152f64c67eaebef1993.tar.bz2
GT5-Unofficial-1fe377e10ef32f3e54e0d152f64c67eaebef1993.zip
+ Added burn times for Wooden Pellets & Bricks.
% Many minor Bio recipe adjustments. $ Fixed Oredict name of some Fluid Cells, advise if this breaks existing recipes. (Probably look at Alkalus ingots)
Diffstat (limited to 'src/Java/gtPlusPlus/core/item')
-rw-r--r--src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java b/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
index dc2c0232a6..c8b6253753 100644
--- a/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
+++ b/src/Java/gtPlusPlus/core/item/base/BaseItemComponent.java
@@ -96,7 +96,7 @@ public class BaseItemComponent extends Item{
this.extraData = RGBA;
this.setTextureName(CORE.MODID + ":" + "item"+ComponentTypes.CELL.COMPONENT_NAME);
GameRegistry.registerItem(this, aFormattedNameForFluids);
- GT_OreDictUnificator.registerOre(ComponentTypes.CELL.getOreDictName()+aFormattedNameForFluids, ItemUtils.getSimpleStack(this));
+ GT_OreDictUnificator.registerOre(ComponentTypes.CELL.getOreDictName()+Utils.sanitizeStringKeepBrackets(localName), ItemUtils.getSimpleStack(this));
registerComponent();
}
@@ -165,6 +165,14 @@ public class BaseItemComponent extends Item{
public final void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
try {
+
+
+ if (this.componentMaterial == null){
+ if (this.materialName != null){
+ list.add(Utils.sanitizeStringKeepBrackets(materialName));
+ }
+ }
+
if ((this.materialName != null) && (this.materialName != "") && !this.materialName.equals("") && (this.componentMaterial != null)){