Added logic to allow fluid-accepting machines to use IFluidContainerItem fluids

This commit is contained in:
Aidan C. Brady committed 2014-07-10 16:24:55 -04:00
1 parent 95b6ac8be1
commit 1f9782d1c7
8 files changed
+292 -138

No files matched your search

@@ -787,7 +787,7 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec
if(fluidStack == null || fluidStack.amount == 0 || fluidStack.fluidID == 0)
{
itemStack.stackTagCompound.setTag("fluidTank", null);
itemStack.stackTagCompound.removeTag("fluidTank");
}
else {
itemStack.stackTagCompound.setTag("fluidTank", fluidStack.writeToNBT(new NBTTagCompound()));