Fixed shift-clicking issue with items that utilized the new ItemStack sensitive smelting system.

This commit is contained in:
LexManos 2012-04-18 19:34:08 -07:00
parent 23ffbb774f
commit f4fc50b3c5
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- ../src_base/minecraft/net/minecraft/src/ContainerFurnace.java 0000-00-00 00:00:00.000000000 -0000
+++ ../src_work/minecraft/net/minecraft/src/ContainerFurnace.java 0000-00-00 00:00:00.000000000 -0000
@@ -108,7 +108,7 @@
}
else if (par1 != 1 && par1 != 0)
{
- if (FurnaceRecipes.smelting().getSmeltingResult(var4.getItem().shiftedIndex) != null)
+ if (FurnaceRecipes.smelting().getSmeltingResult(var4) != null)
{
if (!this.mergeItemStack(var4, 0, 1, false))
{

View file

@ -0,0 +1,11 @@
--- ../src_base/minecraft_server/net/minecraft/src/ContainerFurnace.java 0000-00-00 00:00:00.000000000 -0000
+++ ../src_work/minecraft_server/net/minecraft/src/ContainerFurnace.java 0000-00-00 00:00:00.000000000 -0000
@@ -98,7 +98,7 @@
}
else if (par1 != 1 && par1 != 0)
{
- if (FurnaceRecipes.smelting().getSmeltingResult(var4.getItem().shiftedIndex) != null)
+ if (FurnaceRecipes.smelting().getSmeltingResult(var4) != null)
{
if (!this.mergeItemStack(var4, 0, 1, false))
{