Work on Formulaic Assemblicator, many fixes

This commit is contained in:
aidancbrady committed 2016-03-12 11:43:44 -05:00
1 parent f31e32fcf2
commit 6f4e73d15e
12 files changed
+302 -23

No files matched your search

@@ -202,11 +202,6 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem, ITierIt
return true;
}
if(stack.stackTagCompound == null || !stack.stackTagCompound.hasKey("newCount"))
{
return true;
}
return false;
}
@@ -219,9 +214,12 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem, ITierIt
{
return null;
}
int newCount = stack.stackTagCompound.getInteger("newCount");
stack.stackTagCompound.removeTag("newCount");
ItemStack ret = stack.copy();
ret.stackTagCompound.setInteger("itemCount", stack.stackTagCompound.getInteger("newCount"));
ret.stackTagCompound.setInteger("itemCount", newCount);
return ret;
}