Lots of work on Formulaic Assemblicators, still need to do a good bit of polishing

This commit is contained in:
aidancbrady committed 2016-03-15 17:34:17 -04:00
1 parent 1dfc35c6dd
commit 779c2c49e7
6 files changed
+246 -33

No files matched your search

@@ -43,6 +43,13 @@ public class ItemCraftingFormula extends ItemMekanism
return getInventory(stack) == null ? icons[0] : (isInvalid(stack) ? icons[1] : icons[2]);
}
@Override
@SideOnly(Side.CLIENT)
public boolean requiresMultipleRenderPasses()
{
return true;
}
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack itemstack, EntityPlayer entityplayer, List list, boolean flag)
@@ -145,7 +152,7 @@ public class ItemCraftingFormula extends ItemMekanism
public ItemStack[] getInventory(ItemStack stack)
{
if(stack.stackTagCompound == null)
if(stack.stackTagCompound == null || !stack.stackTagCompound.hasKey("Items"))
{
return null;
}
@@ -174,6 +181,12 @@ public class ItemCraftingFormula extends ItemMekanism
stack.setTagCompound(new NBTTagCompound());
}
if(inv == null)
{
stack.stackTagCompound.removeTag("Items");
return;
}
NBTTagList tagList = new NBTTagList();
for(int slotCount = 0; slotCount < 9; slotCount++)