diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-06-29 19:24:32 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-06-29 19:24:32 +1000 |
commit | f0418333ed443ceddf78c7658737dac697462b59 (patch) | |
tree | 87f05e08af154dccc1cb68fb387d37ee5351f4e4 /src/Java/miscutil/core/util | |
parent | 60f0d09e5f094cea82ad0e25e93934a8c0aed1be (diff) | |
download | GT5-Unofficial-f0418333ed443ceddf78c7658737dac697462b59.tar.gz GT5-Unofficial-f0418333ed443ceddf78c7658737dac697462b59.tar.bz2 GT5-Unofficial-f0418333ed443ceddf78c7658737dac697462b59.zip |
Think I've fixed bad textured registration.
All fluids should now have valid textures or textures missing within the <MiscUtils> domain.
Diffstat (limited to 'src/Java/miscutil/core/util')
-rw-r--r-- | src/Java/miscutil/core/util/item/UtilsItems.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Java/miscutil/core/util/item/UtilsItems.java b/src/Java/miscutil/core/util/item/UtilsItems.java index 590b0167be..82075a7093 100644 --- a/src/Java/miscutil/core/util/item/UtilsItems.java +++ b/src/Java/miscutil/core/util/item/UtilsItems.java @@ -112,6 +112,28 @@ public class UtilsItems { return null; } } + + @SuppressWarnings("unused") + public static ItemStack simpleMetaStack(Item item, int meta, int itemstackSize){ + try { + Item em = item; + Item em1 = item; + Utils.LOG_WARNING("Found: "+em1.getUnlocalizedName()+":"+meta); + if (em1 != null){ + if (null == em){ + em = em1; + } + if (em != null){ + ItemStack metaStack = new ItemStack(em,itemstackSize,meta); + return metaStack; + } + } + return null; + } catch (NullPointerException e) { + Utils.LOG_ERROR(item.getUnlocalizedName()+" not found. [NULL]"); + return null; + } + } public static ItemStack getCorrectStacktype(String fqrn, int stackSize){ String oreDict = "ore:"; |