mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-24 05:44:27 +00:00
Lots of work on Formulaic Assemblicators, still need to do a good bit of polishing
This commit is contained in:
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++)
|
||||
|
||||
Reference in new issue
Block a user