diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-01-11 16:32:07 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-01-11 16:32:07 +1000 |
commit | 8d3d640b9e4f52a81f11255c89f201db80e7a9d4 (patch) | |
tree | de01f737a175a4b641072726de82f7c30d83185a /src/Java/gtPlusPlus/core/util/item | |
parent | 5f5f2168e3d9f6e9c9aad504498bacd3b4102afb (diff) | |
download | GT5-Unofficial-8d3d640b9e4f52a81f11255c89f201db80e7a9d4.tar.gz GT5-Unofficial-8d3d640b9e4f52a81f11255c89f201db80e7a9d4.tar.bz2 GT5-Unofficial-8d3d640b9e4f52a81f11255c89f201db80e7a9d4.zip |
+ Added Tree farm Fluid/solid Fertilisers.
+ Added a handler for creating non-molten fluids.
+ Added the basis for a config switch to enable or disable the tree farmer.
$ Improved Tree Farm cutting and cleanup code.
$ Fixed a bug in ItemUtils, stemming from ancient code which pointed at an array index which never exists. (Now I compare array length.)
- Removed some useless code from Material.java.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/item')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/item/ItemUtils.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/core/util/item/ItemUtils.java b/src/Java/gtPlusPlus/core/util/item/ItemUtils.java index 2df848cae5..2595f88fec 100644 --- a/src/Java/gtPlusPlus/core/util/item/ItemUtils.java +++ b/src/Java/gtPlusPlus/core/util/item/ItemUtils.java @@ -177,8 +177,12 @@ public class ItemUtils { return temp; } String[] fqrnSplit = fqrn.split(":"); - if(fqrnSplit[2] == null){fqrnSplit[2] = "0";} - temp = ItemUtils.getItemStackWithMeta(LoadedMods.MiscUtils, fqrn, fqrnSplit[1], Integer.parseInt(fqrnSplit[2]), stackSize); + String temp1; + String temp2; + temp1 = fqrnSplit[1]; + if (fqrnSplit.length < 3){temp2 = "0";} + else {temp2 = fqrnSplit[2];} + temp = ItemUtils.getItemStackWithMeta(LoadedMods.MiscUtils, fqrn, temp1, Integer.parseInt(temp2), stackSize); return temp; } |