mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 12:32:13 +00:00
Added logic to allow fluid-accepting machines to use IFluidContainerItem fluids
This commit is contained in:
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()));
|
||||
|
||||
Reference in new issue
Block a user