Limit filled tank stack size to 16
@@ -32,6 +32,12 @@ public class TankItem extends BlockTooltipItem {
super(blockIn, builder);
}
+ @Override
+ public int getItemStackLimit(ItemStack stack) {
+ FluidTank tank = getFluidTank(stack);
+ return tank.isEmpty() ? 64 : 16;
+ }
+
@Override
@OnlyIn(Dist.CLIENT)
public void addInformation(ItemStack stack, @Nullable World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) {
