COnverted patches to SRG names

This commit is contained in:
AbrarSyed committed 2014-03-25 10:13:57 -05:00
1 parent 0620a64813
commit 2a2e201f4a
211 files changed
+5540 -5065

No files matched your search

@@ -1,34 +1,34 @@
--- ../src-base/minecraft/net/minecraft/tileentity/TileEntityFurnace.java
+++ ../src-work/minecraft/net/minecraft/tileentity/TileEntityFurnace.java
@@ -232,8 +232,7 @@
@@ -217,8 +217,7 @@
if (this.furnaceItemStacks[1].stackSize == 0)
if (this.field_145957_n[1].field_77994_a == 0)
{
- Item item = this.furnaceItemStacks[1].getItem().getContainerItem();
- this.furnaceItemStacks[1] = item != null ? new ItemStack(item) : null;
+ this.furnaceItemStacks[1] = furnaceItemStacks[1].getItem().getContainerItem(furnaceItemStacks[1]);
- Item item = this.field_145957_n[1].func_77973_b().func_77668_q();
- this.field_145957_n[1] = item != null ? new ItemStack(item) : null;
+ this.field_145957_n[1] = field_145957_n[1].func_77973_b().getContainerItem(field_145957_n[1]);
}
}
}
@@ -278,7 +277,11 @@
@@ -262,7 +261,11 @@
else
{
ItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);
- return itemstack == null ? false : (this.furnaceItemStacks[2] == null ? true : (!this.furnaceItemStacks[2].isItemEqual(itemstack) ? false : (this.furnaceItemStacks[2].stackSize < this.getInventoryStackLimit() && this.furnaceItemStacks[2].stackSize < this.furnaceItemStacks[2].getMaxStackSize() ? true : this.furnaceItemStacks[2].stackSize < itemstack.getMaxStackSize())));
ItemStack itemstack = FurnaceRecipes.func_77602_a().func_151395_a(this.field_145957_n[0]);
- return itemstack == null ? false : (this.field_145957_n[2] == null ? true : (!this.field_145957_n[2].func_77969_a(itemstack) ? false : (this.field_145957_n[2].field_77994_a < this.func_70297_j_() && this.field_145957_n[2].field_77994_a < this.field_145957_n[2].func_77976_d() ? true : this.field_145957_n[2].field_77994_a < itemstack.func_77976_d())));
+ if (itemstack == null) return false;
+ if (this.furnaceItemStacks[2] == null) return true;
+ if (!this.furnaceItemStacks[2].isItemEqual(itemstack)) return false;
+ int result = furnaceItemStacks[2].stackSize + itemstack.stackSize;
+ return result <= getInventoryStackLimit() && result <= this.furnaceItemStacks[2].getMaxStackSize(); //Forge BugFix: Make it respect stack sizes properly.
+ if (this.field_145957_n[2] == null) return true;
+ if (!this.field_145957_n[2].func_77969_a(itemstack)) return false;
+ int result = field_145957_n[2].field_77994_a + itemstack.field_77994_a;
+ return result <= func_70297_j_() && result <= this.field_145957_n[2].func_77976_d(); //Forge BugFix: Make it respect stack sizes properly.
}
}
@@ -295,7 +298,7 @@
@@ -278,7 +281,7 @@
}
else if (this.furnaceItemStacks[2].getItem() == itemstack.getItem())
else if (this.field_145957_n[2].func_77973_b() == itemstack.func_77973_b())
{
- ++this.furnaceItemStacks[2].stackSize;
+ this.furnaceItemStacks[2].stackSize += itemstack.stackSize; // Forge BugFix: Results may have multiple items
- ++this.field_145957_n[2].field_77994_a;
+ this.field_145957_n[2].field_77994_a += itemstack.field_77994_a; // Forge BugFix: Results may have multiple items
}
--this.furnaceItemStacks[0].stackSize;
--this.field_145957_n[0].field_77994_a;