Fix a few issues when dealing with NBT items during crafting calculation.

This commit is contained in:
AlgorithmX2
2014-08-01 23:00:12 -05:00
parent 94c8ea93d2
commit e2337a1226
4 changed files with 42 additions and 7 deletions
+11
View File
@@ -137,6 +137,17 @@ public class CraftingTreeProcess
}
}
// more fuzzy!
for (IAEItemStack is : details.getCondencedOutputs())
{
if ( is.getItem() == what2.getItem() && (is.getItem().isDamageable() || is.getItemDamage() == what2.getItemDamage()) )
{
what2 = is.copy();
what2.setStackSize( is.getStackSize() );
return what2;
}
}
throw new RuntimeException( "Crafting Tree construction failed." );
}