mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 22:44:23 +00:00
quick fix : Redundant local variable
This commit is contained in:
1 parent
92418806c1
commit
a2295f380e
16 files changed
+23
-55
No files matched your search
@@ -12,7 +12,6 @@ public class Detailing {
|
||||
|
||||
public void addDetailing(Object input, int inputMeta, Object output, int outputMeta, ToolCore tool) {
|
||||
ItemStack iID, oID;
|
||||
int iMeta = inputMeta, oMeta = outputMeta;
|
||||
|
||||
if (input instanceof Block) iID = new ItemStack(((Block) input));
|
||||
else if (input instanceof Item) iID = new ItemStack(((Item) input));
|
||||
@@ -24,7 +23,7 @@ public class Detailing {
|
||||
else if (output instanceof ItemStack) oID = (ItemStack) output;
|
||||
else throw new RuntimeException("Invalid detail output!");
|
||||
|
||||
this.addDetailing(new DetailInput(iID, iMeta, oID, oMeta), tool);
|
||||
this.addDetailing(new DetailInput(iID, inputMeta, oID, outputMeta), tool);
|
||||
}
|
||||
|
||||
public void addDetailing(DetailInput details, ToolCore tool) {
|
||||
@@ -48,11 +47,10 @@ public class Detailing {
|
||||
|
||||
public void addShapelessToolRecipe(ItemStack par1ItemStack, Object... par2ArrayOfObj) {
|
||||
ArrayList arraylist = new ArrayList();
|
||||
Object[] aobject = par2ArrayOfObj;
|
||||
int i = par2ArrayOfObj.length;
|
||||
|
||||
for (int j = 0; j < i; ++j) {
|
||||
Object object1 = aobject[j];
|
||||
Object object1 = par2ArrayOfObj[j];
|
||||
|
||||
if (object1 instanceof ItemStack) {
|
||||
arraylist.add(((ItemStack) object1).copy());
|
||||
|
||||
Reference in new issue
Block a user