Formatting...

This commit is contained in:
Lizbeth Rika committed 2014-09-24 17:10:52 +01:00
1 parent 1ecd9b5996
commit 5c71498159
1 file changed
+15 -15
@@ -27,28 +27,28 @@ public class RegenIvyRecipe implements IRecipe {
ItemStack tool = null;
boolean foundIvy = false;
int materialsFound = 0;
for(int i = 0; i < var1.getSizeInventory(); i++) {
ItemStack stack = var1.getStackInSlot(i);
if (stack != null) {
Item item = stack.getItem();
if(item.isRepairable())
tool = stack;
else if(item == ModItems.regenIvy)
foundIvy = true;
}
}
for(int i = 0; i < var1.getSizeInventory(); i++) {
ItemStack stack = var1.getStackInSlot(i);
if(stack != null) {
Item item = stack.getItem();
Item item = stack.getItem();
if(item.isRepairable())
tool = stack;
else if(item == ModItems.regenIvy)
foundIvy = true;
}
}
for(int i = 0; i < var1.getSizeInventory(); i++) {
ItemStack stack = var1.getStackInSlot(i);
if(stack != null) {
Item item = stack.getItem();
if(tool != null && tool.getItem().getIsRepairable(tool, stack))
materialsFound++;
else if(stack!=tool && item!=ModItems.regenIvy )
return false;
else if(stack != tool && item != ModItems.regenIvy)
return false;
}
}