From cc96840aa83298dce54770b3905a8bbcf8f00757 Mon Sep 17 00:00:00 2001 From: Michael Hahn Date: Mon, 26 Aug 2013 12:21:31 -0500 Subject: [PATCH] capacity was not respected Updated to properly calculate the amount of free space in the tank before checking that against the amount of the resource. --- common/net/minecraftforge/fluids/ItemFluidContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/net/minecraftforge/fluids/ItemFluidContainer.java b/common/net/minecraftforge/fluids/ItemFluidContainer.java index e42703aa40..be615d3a10 100644 --- a/common/net/minecraftforge/fluids/ItemFluidContainer.java +++ b/common/net/minecraftforge/fluids/ItemFluidContainer.java @@ -106,7 +106,7 @@ public class ItemFluidContainer extends Item implements IFluidContainerItem return 0; } - int filled = capacity - resource.amount; + int filled = capacity - stack.amount; if (resource.amount < filled) { stack.amount += resource.amount;