mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
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.
This commit is contained in:
1 parent
b2c1eae652
commit
cc96840aa8
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user