Website Recipe Update.

This commit is contained in:
AlgorithmX2
2014-07-15 12:02:12 -05:00
parent 8c0658d3de
commit 137549f8fa
4 changed files with 66 additions and 21 deletions
+15
View File
@@ -93,6 +93,21 @@ public class Shaped implements ICraftHandler, IWebsiteSeralizer
@Override
public boolean canCraft(ItemStack reqOutput) throws RegistrationError, MissingIngredientError
{
for (int y = 0; y < rows; y++)
for (int x = 0; x < cols; x++)
{
IIngredient i = inputs.get( y ).get( x );
if ( !i.isAir() )
{
for ( ItemStack r : i.getItemStackSet() )
{
if ( Platform.isSameItemPrecise( r, reqOutput) )
return false;
}
}
}
return Platform.isSameItemPrecise( output.getItemStack(), reqOutput );
}